The type JMS\Serializer\Metadata\Driver\list was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
The expression return array_map(functio...class->getAttributes()) returns the type array which is incompatible with the documented return type JMS\Serializer\Metadata\Driver\list.
Loading history...
15
static function (\ReflectionAttribute $attribute): object {
16
return $attribute->newInstance();
17
},
18
$class->getAttributes()
19
);
20
}
21
22
/**
23
* @return list<object>
24
*/
25
protected function getMethodAnnotations(\ReflectionMethod $method): array
The expression return array_map(functio...ethod->getAttributes()) returns the type array which is incompatible with the documented return type JMS\Serializer\Metadata\Driver\list.
Loading history...
28
static function (\ReflectionAttribute $attribute): object {
29
return $attribute->newInstance();
30
},
31
$method->getAttributes()
32
);
33
}
34
35
/**
36
* @return list<object>
37
*/
38
protected function getPropertyAnnotations(\ReflectionProperty $property): array
The expression return array_map(functio...perty->getAttributes()) returns the type array which is incompatible with the documented return type JMS\Serializer\Metadata\Driver\list.
Loading history...
41
static function (\ReflectionAttribute $attribute): object {
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths