| 1 | <?php |
||
| 18 | class Argument implements ArgumentInterface, \JsonSerializable |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var TypeInterface |
||
| 27 | */ |
||
| 28 | private $type; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var ContextInterface |
||
| 32 | */ |
||
| 33 | private $context; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Argument constructor. |
||
| 37 | * @param string $name |
||
| 38 | * @param TypeInterface $type |
||
| 39 | * @param ContextInterface $context |
||
| 40 | */ |
||
| 41 | public function __construct(string $name, TypeInterface $type, ContextInterface $context) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getName(): string |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return TypeInterface |
||
| 58 | */ |
||
| 59 | public function getType(): TypeInterface |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function jsonSerialize(): array |
||
| 75 | } |
||
| 76 |
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..