Skip to content

Commit

Permalink
chore: dont fail on destruct if no container
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaguerre committed Jan 21, 2025
1 parent d69a4fb commit e4c1c05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/InstrumentationBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public function boot(): void

public function __destruct()
{
if (null === $this->container) {
return;
}

foreach ([
TracerProviderInterface::class,
MeterProviderInterface::class,
Expand Down

0 comments on commit e4c1c05

Please sign in to comment.