1 | <?php |
||
15 | class AnnotationResolver implements Resolver |
||
16 | { |
||
17 | /** @var Resolver */ |
||
18 | protected $classResolver; |
||
19 | |||
20 | /** @var Resolver */ |
||
21 | protected $propertyResolver; |
||
22 | |||
23 | /** @var Resolver */ |
||
24 | protected $methodResolver; |
||
25 | |||
26 | /** |
||
27 | * AnnotationResolver constructor. |
||
28 | * |
||
29 | * @param Resolver $classResolver |
||
30 | * @param Resolver $propertyResolver |
||
31 | * @param Resolver $methodResolver |
||
32 | */ |
||
33 | public function __construct(Resolver $classResolver, Resolver $propertyResolver, Resolver $methodResolver) |
||
39 | |||
40 | 1 | /** |
|
41 | 1 | * {@inheritDoc} |
|
42 | */ |
||
43 | public function resolve($classData, $identifier = null) |
||
60 | } |
||
61 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: