Skip to content

Commit 0d7dcf4

Browse files
Laravel: remove property_exists check that supported Laravel versions do not require.
1 parent 60fc781 commit 0d7dcf4

File tree

1 file changed

+0
-4
lines changed
  • src/Instrumentation/Laravel/src/Hooks/Illuminate/Foundation/Console

1 file changed

+0
-4
lines changed

src/Instrumentation/Laravel/src/Hooks/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ public function instrument(
2828
FoundationServeCommand::class,
2929
'handle',
3030
preHook: static function (FoundationServeCommand $serveCommand, array $params, string $class, string $function, ?string $filename, ?int $lineno) use ($tracer) {
31-
if (!property_exists(FoundationServeCommand::class, 'passthroughVariables')) {
32-
return;
33-
}
34-
3531
foreach ($_ENV as $key => $value) {
3632
if (str_starts_with($key, 'OTEL_') && !in_array($key, FoundationServeCommand::$passthroughVariables)) {
3733
FoundationServeCommand::$passthroughVariables[] = $key;

0 commit comments

Comments
 (0)