1 | <?php |
||
22 | class NamespacePropertyAnnotator implements PropertyAnnotator { |
||
23 | |||
24 | /** |
||
25 | * Predefined property ID |
||
26 | */ |
||
27 | const PROP_ID = '___NAMESPACE'; |
||
28 | |||
29 | /** |
||
30 | * @var AppFactory |
||
31 | */ |
||
32 | private $appFactory; |
||
33 | |||
34 | /** |
||
35 | * @var Integer|null |
||
36 | */ |
||
37 | private $namespace; |
||
38 | |||
39 | /** |
||
40 | * @param AppFactory $appFactory |
||
41 | */ |
||
42 | public function __construct( AppFactory $appFactory ) { |
||
45 | |||
46 | /** |
||
47 | * @since 2.0 |
||
48 | * |
||
49 | * @param User $namespace |
||
50 | */ |
||
51 | public function setNamespace( $namespace ) { |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function isAnnotatorFor( DIProperty $property ) { |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
84 | |||
85 | private function getDataItem() { |
||
88 | |||
89 | } |
||
90 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..