diff --git a/src/Container.php b/src/Container.php index b0fc50c..bc6075f 100644 --- a/src/Container.php +++ b/src/Container.php @@ -174,7 +174,7 @@ private function createObject(string $className): object throw new ContainerException(sprintf('Unable to create object `%s`.', $className), 0, $e); } - if (in_array(FactoryInterface::class, $reflection->getInterfaceNames())) { + if (in_array(FactoryInterface::class, $reflection->getInterfaceNames(), true)) { try { /** @var FactoryInterface $factory */ $factory = $this->getObjectFromReflection($reflection);