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
This commit is contained in:
commit
d4561e4a65
@ -65,7 +65,7 @@ class ValidateEnvPlaceholdersPass implements CompilerPassInterface
|
||||
$processor = new Processor();
|
||||
|
||||
foreach ($extensions as $name => $extension) {
|
||||
if (!$extension instanceof ConfigurationExtensionInterface || !$config = $container->getExtensionConfig($name)) {
|
||||
if (!$extension instanceof ConfigurationExtensionInterface || !$config = array_filter($container->getExtensionConfig($name))) {
|
||||
// this extension has no semantic configuration or was not called
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user