Merge pull request #422 from sbuerk/stefan-1

[BUGFIX] Mitigate "Using null as an array offset is deprecated"
This commit is contained in:
Jaap van Otterdijk
2025-11-27 20:50:05 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -282,8 +282,8 @@ final class StandardTagFactory implements TagFactory
} }
$parameterName = $parameter->getName(); $parameterName = $parameter->getName();
if (isset($locator[$typeHint])) { if (isset($locator[$typeHint ?? ''])) {
$arguments[$parameterName] = $locator[$typeHint]; $arguments[$parameterName] = $locator[$typeHint ?? ''];
continue; continue;
} }
@@ -525,6 +525,11 @@ class StandardTagFactoryTest extends TestCase
'tag', 'tag',
'@tag (is valid)', '@tag (is valid)',
], ],
'full-qualified-class-name following a tag name is valid' => [
'@tag \InvalidArgumentException',
'tag',
'@tag \InvalidArgumentException',
],
]; ];
} }