Skip to content

Commit

Permalink
Merge pull request #29 from Out-Of-Box-Lab/v6
Browse files Browse the repository at this point in the history
Fix compiler pass error
  • Loading branch information
bresam authored Mar 13, 2024
2 parents 70c634e + 56a7663 commit 62949e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DependencyInjection/Compiler/PublicForTestsCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 62949e9

Please sign in to comment.