Skip to content

Commit 2024806

Browse files
simbigstayallive
andauthored
Fix deprecation message for str_starts_with (#780)
Co-authored-by: Alex Bouma <[email protected]>
1 parent 8d4192f commit 2024806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/Laravel/Tracing/Integrations/LighthouseIntegration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setupOnce(): void
8080
private function processEvent(Event $event, Options $options): void
8181
{
8282
// Detect if we are processing a GraphQL request, if not skip processing the event
83-
if (!Str::startsWith($event->getTransaction(), 'lighthouse?')) {
83+
if ($event->getTransaction() === null || !Str::startsWith($event->getTransaction(), 'lighthouse?')) {
8484
return;
8585
}
8686

0 commit comments

Comments
 (0)