diff --git a/src/Handler/ContainerHandler.php b/src/Handler/ContainerHandler.php index b49acbc..cdc19d0 100644 --- a/src/Handler/ContainerHandler.php +++ b/src/Handler/ContainerHandler.php @@ -169,6 +169,10 @@ public static function afterClassLikeVisit(AfterClassLikeVisitEvent $event) public static function afterCodebasePopulated(AfterCodebasePopulatedEvent $event): void { + if (null === self::$containerMeta) { + return; + } + $containerClassNames = array_map(function (string $className): string { return strtolower($className); }, self::$containerMeta->getClassNames());