This commit is contained in:
Fabien Potencier 2020-09-12 10:28:26 +02:00
parent a32fde9b9c
commit f1f37a899c

View File

@ -38,7 +38,7 @@ final class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface
foreach ($reflection->getParameters() as $param) {
$attribute = null;
if (method_exists($param, 'getAttributes')) {
if (\PHP_VERSION_ID >= 80000) {
$reflectionAttributes = $param->getAttributes(ArgumentInterface::class, \ReflectionAttribute::IS_INSTANCEOF);
if (\count($reflectionAttributes) > 1) {