Skip to content

Commit e3cc2fe

Browse files
committed
Update code examples
1 parent 9cdef00 commit e3cc2fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/platform-includes/configuration/before-send-transaction/php.laravel.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
In the Laravel config, a closure can be used to modify the event or return a completely new one. If you return `null`, the event will be discarded.
22

33
```php {filename:config/sentry.php}
4-
'before_send_transaction' => function (\Sentry\Event $event): ?\Sentry\Event {
5-
return $event;
4+
'before_send_transaction' => function (\Sentry\Event $transaction): ?\Sentry\Event {
5+
return $transaction;
66
},
77
```
88

src/platform-includes/configuration/before-send-transaction/php.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ In PHP, a closure can be used to modify the event or return a completely new one
33
```php
44
\Sentry\init([
55
'dsn' => '___PUBLIC_DSN___',
6-
'before_send_transaction' => function (\Sentry\Event $event): ?\Sentry\Event {
7-
return $event;
6+
'before_send_transaction' => function (\Sentry\Event $transaction): ?\Sentry\Event {
7+
return $transaction;
88
},
99
]);
1010
```

0 commit comments

Comments
 (0)