diff --git a/DependencyInjection/Compiler/PublicForTestsCompilerPass.php b/DependencyInjection/Compiler/PublicForTestsCompilerPass.php index 9ddd6d0c..2bade29f 100644 --- a/DependencyInjection/Compiler/PublicForTestsCompilerPass.php +++ b/DependencyInjection/Compiler/PublicForTestsCompilerPass.php @@ -17,9 +17,8 @@ public function process(ContainerBuilder $container): void foreach ($container->getDefinitions() as $definition) { - if(str_contains($definition->getClass(), 'Ivory\GoogleMapBundle') || - str_contains($definition->getClass(), 'Ivory\GoogleMap') || - str_contains($definition->getClass(), 'Ivory\Serializer')) + if(str_contains((string) $definition->getClass(), 'Ivory\GoogleMapBundle') || + str_contains((string) $definition->getClass(), 'Ivory\GoogleMap')) { $definition->setPublic(true); }