Skip to content

Commit ff459af

Browse files
bug #58638 [FrameworkBundle] fix null store handling in XML configs (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] fix null store handling in XML configs | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | see #58518 | License | MIT Commits ------- b50ecb2795f fix null store handling in XML configs
2 parents e1567bb + c2c08eb commit ff459af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,10 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
20282028
// Generate stores
20292029
$storeDefinitions = [];
20302030
foreach ($resourceStores as $resourceStore) {
2031+
if (null === $resourceStore) {
2032+
$resourceStore = 'null';
2033+
}
2034+
20312035
$storeDsn = $container->resolveEnvPlaceholders($resourceStore, null, $usedEnvs);
20322036
if (!$usedEnvs && !str_contains($resourceStore, ':') && !\in_array($resourceStore, ['flock', 'semaphore', 'in-memory', 'null'], true)) {
20332037
$resourceStore = new Reference($resourceStore);

0 commit comments

Comments
 (0)