1 | <?php |
||
14 | class Query extends AbstractAst implements FieldInterface |
||
15 | { |
||
16 | |||
17 | use AstArgumentsTrait; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $name; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $alias; |
||
24 | |||
25 | /** @var Field[]|Query[] */ |
||
26 | protected $fields = []; |
||
27 | |||
28 | /** |
||
29 | * Query constructor. |
||
30 | * |
||
31 | * @param string $name |
||
32 | * @param string $alias |
||
33 | * @param array $arguments |
||
34 | * @param array $fields |
||
35 | * @param Location $location |
||
36 | */ |
||
37 | 85 | public function __construct($name, $alias = '', array $arguments, array $fields, Location $location) |
|
46 | |||
47 | 60 | public function getName() |
|
51 | |||
52 | /** |
||
53 | * @return Field[]|Query[]|FragmentInterface[] |
||
54 | */ |
||
55 | 54 | public function getFields() |
|
59 | |||
60 | /** |
||
61 | * @return bool |
||
62 | */ |
||
63 | 22 | public function hasFields() |
|
67 | |||
68 | /** |
||
69 | * @param Field[]|Query[] $fields |
||
70 | */ |
||
71 | 85 | public function setFields($fields) |
|
78 | |||
79 | 60 | public function getAlias() |
|
83 | |||
84 | public function hasField($name, $deep = false) |
||
100 | |||
101 | } |
||
102 |
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..