Skip to content

Commit 76cea4d

Browse files
clxmstaabondrejmirtes
authored andcommitted
Fix "Possibly invalid array key type string|null."
1 parent 8820c22 commit 76cea4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/XmlServiceMapFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function create(): ServiceMap
7777
}
7878
foreach ($aliases as $service) {
7979
$alias = $service->getAlias();
80-
if ($alias !== null && !isset($services[$alias])) {
80+
if ($alias === null || !isset($services[$alias])) {
8181
continue;
8282
}
8383
$id = $service->getId();

0 commit comments

Comments
 (0)