Skip to content

Commit 020348c

Browse files
committed
minor #1854 [Turbo] Fix TurboExtension for PhpStan (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Turbo] Fix TurboExtension for PhpStan | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Commits ------- 47d9d60 [Turbo] Fix TurboExtension for PhpStan
2 parents 1836ad5 + 47d9d60 commit 020348c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Turbo/src/DependencyInjection/TurboExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function isAssetMapperAvailable(ContainerBuilder $container): bool
114114

115115
// check that FrameworkBundle 6.3 or higher is installed
116116
$bundlesMetadata = $container->getParameter('kernel.bundles_metadata');
117-
if (!isset($bundlesMetadata['FrameworkBundle'])) {
117+
if (!\is_array($bundlesMetadata) || !isset($bundlesMetadata['FrameworkBundle'])) {
118118
return false;
119119
}
120120

0 commit comments

Comments
 (0)