Skip to content

Commit c8559fe

Browse files
committed
use the empty string instead of null as an array offset
1 parent 300b726 commit c8559fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/TranslatorPathsPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
9696
$class = $this->definitions[$i]->getClass();
9797

9898
if (ServiceLocator::class === $class) {
99-
if (!isset($this->controllers[$this->currentId])) {
99+
if (!isset($this->controllers[$this->currentId ?? ''])) {
100100
continue;
101101
}
102-
foreach ($this->controllers[$this->currentId] as $class => $_) {
102+
foreach ($this->controllers[$this->currentId ?? ''] as $class => $_) {
103103
$this->paths[$class] = true;
104104
}
105105
} else {

0 commit comments

Comments
 (0)