1 | <?php |
||
21 | class NamespacePropertyAnnotator implements PropertyAnnotator { |
||
22 | |||
23 | /** |
||
24 | * Predefined property ID |
||
25 | */ |
||
26 | const PROP_ID = '___NAMESPACE'; |
||
27 | |||
28 | /** |
||
29 | * @var AppFactory |
||
30 | */ |
||
31 | private $appFactory; |
||
32 | |||
33 | /** |
||
34 | * @var Integer|null |
||
35 | */ |
||
36 | private $namespace; |
||
37 | |||
38 | /** |
||
39 | * @param AppFactory $appFactory |
||
40 | */ |
||
41 | public function __construct( AppFactory $appFactory ) { |
||
44 | |||
45 | /** |
||
46 | * @since 2.0 |
||
47 | * |
||
48 | * @param User $namespace |
||
49 | */ |
||
50 | public function setNamespace( $namespace ) { |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | public function isAnnotatorFor( DIProperty $property ) { |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
81 | |||
82 | private function getDataItem() { |
||
91 | |||
92 | } |
||
93 |
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..