mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Merge pull request #422 from sbuerk/stefan-1
[BUGFIX] Mitigate "Using null as an array offset is deprecated"
This commit is contained in:
@@ -282,8 +282,8 @@ final class StandardTagFactory implements TagFactory
|
||||
}
|
||||
|
||||
$parameterName = $parameter->getName();
|
||||
if (isset($locator[$typeHint])) {
|
||||
$arguments[$parameterName] = $locator[$typeHint];
|
||||
if (isset($locator[$typeHint ?? ''])) {
|
||||
$arguments[$parameterName] = $locator[$typeHint ?? ''];
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -525,6 +525,11 @@ class StandardTagFactoryTest extends TestCase
|
||||
'tag',
|
||||
'@tag (is valid)',
|
||||
],
|
||||
'full-qualified-class-name following a tag name is valid' => [
|
||||
'@tag \InvalidArgumentException',
|
||||
'tag',
|
||||
'@tag \InvalidArgumentException',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user