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 | 4 | public function __construct( AppFactory $appFactory ) { |
|
36 | |||
37 | /** |
||
38 | * @since 2.0 |
||
39 | * |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | 1 | public function isAnnotatorFor( DIProperty $property ) { |
|
45 | |||
46 | /** |
||
47 | * @since 2.0 |
||
48 | * |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | 2 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
|
65 | |||
66 | 2 | private function callOnLocalDef( $definition, $property, $semanticData ) { |
|
82 | |||
83 | } |
||
84 |
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: