Skip to content

Commit 0aff03d

Browse files
bug #27710 [DependencyInjection] fix handling of empty DI extension configs (xabbuh)
This PR was merged into the 4.1 branch. Discussion ---------- [DependencyInjection] fix handling of empty DI extension configs | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27707 | License | MIT | Doc PR | Commits ------- 05d4bcb987 fix handling of empty DI extension configs
2 parents 90bb654 + 442f091 commit 0aff03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/ValidateEnvPlaceholdersPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function process(ContainerBuilder $container)
6565
$processor = new Processor();
6666

6767
foreach ($extensions as $name => $extension) {
68-
if (!$extension instanceof ConfigurationExtensionInterface || !$config = $container->getExtensionConfig($name)) {
68+
if (!$extension instanceof ConfigurationExtensionInterface || !$config = array_filter($container->getExtensionConfig($name))) {
6969
// this extension has no semantic configuration or was not called
7070
continue;
7171
}

0 commit comments

Comments
 (0)