Skip to content

Commit

Permalink
fixed PHP 8.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 5, 2020
1 parent de9402b commit 206328f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ private static function autowireArgument(\ReflectionParameter $parameter, callab

} elseif (
$method instanceof \ReflectionMethod
&& $parameter->isArray()
&& $type === 'array'
&& preg_match('#@param[ \t]+([\w\\\\]+)\[\][ \t]+\$' . $parameter->name . '#', (string) $method->getDocComment(), $m)
&& ($itemType = Reflection::expandClassName($m[1], $method->getDeclaringClass()))
&& (class_exists($itemType) || interface_exists($itemType))
Expand Down

0 comments on commit 206328f

Please sign in to comment.