| 1 | <?php |
||
| 4 | class ExecutionResult |
||
| 5 | { |
||
| 6 | /** @var array */ |
||
| 7 | private $output; |
||
| 8 | /** @var int */ |
||
| 9 | private $returnCode; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param int $returnCode |
||
| 13 | * @param string $output |
||
| 14 | */ |
||
| 15 | 5 | public function __construct($returnCode, $output) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 3 | public function getOutput() |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | 3 | public function getReturnCode() |
|
| 36 | |||
| 37 | } |
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..