| 1 | <?php |
||
| 11 | class TypedFragmentReference |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var Field[]|Query[] */ |
||
| 15 | protected $fields; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | protected $typeName; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $typeName |
||
| 22 | * @param Field[]|Query[] $fields |
||
| 23 | */ |
||
| 24 | 1 | public function __construct($typeName, $fields) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return Field[]|Query[] |
||
| 32 | */ |
||
| 33 | public function getFields() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param Field[]|Query[] $fields |
||
| 40 | */ |
||
| 41 | public function setFields($fields) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getTypeName() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $typeName |
||
| 56 | */ |
||
| 57 | public function setTypeName($typeName) |
||
| 61 | |||
| 62 | } |
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..