1 | <?php |
||
18 | class ExtraPropertyAnnotator { |
||
19 | |||
20 | /** |
||
21 | * @var AppFactory |
||
22 | */ |
||
23 | private $appFactory; |
||
24 | |||
25 | /** |
||
26 | * @var DispatchingPropertyAnnotator |
||
27 | */ |
||
28 | private $dispatchingPropertyAnnotator; |
||
29 | |||
30 | /** |
||
31 | * @var LocalPropertyAnnotator |
||
32 | */ |
||
33 | private $localPropertyAnnotator; |
||
34 | |||
35 | /** |
||
36 | * @since 2.0 |
||
37 | * |
||
38 | * @param AppFactory $appFactory |
||
39 | */ |
||
40 | 4 | public function __construct( AppFactory $appFactory ) { |
|
43 | |||
44 | /** |
||
45 | * @since 2.0 |
||
46 | * |
||
47 | * @param SemanticData $semanticData |
||
48 | */ |
||
49 | 3 | public function addAnnotation( SemanticData $semanticData ) { |
|
80 | |||
81 | /** |
||
82 | * @since 2.0 |
||
83 | * |
||
84 | * @param string $key |
||
85 | * @param PropertyAnnotator $propertyAnnotator |
||
86 | */ |
||
87 | 1 | public function addPropertyAnnotator( $key, PropertyAnnotator $propertyAnnotator ) { |
|
95 | |||
96 | 3 | private function canAnnotate( $subject ) { |
|
108 | |||
109 | 2 | private function initPropertyAnnotators() { |
|
119 | |||
120 | } |
||
121 |
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: