1 | <?php |
||
21 | class LocalPropertyAnnotator implements PropertyAnnotator { |
||
22 | |||
23 | /** |
||
24 | * @var AppFactory |
||
25 | */ |
||
26 | private $appFactory; |
||
27 | |||
28 | /** |
||
29 | * @since 2.0 |
||
30 | * |
||
31 | * @param AppFactory $appFactory |
||
32 | */ |
||
33 | public function __construct( AppFactory $appFactory ) { |
||
36 | |||
37 | /** |
||
38 | * @since 2.0 |
||
39 | * |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | public function isAnnotatorFor( DIProperty $property ) { |
||
45 | |||
46 | /** |
||
47 | * @since 2.0 |
||
48 | * |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
77 | |||
78 | } |
||
79 |
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: