1 | <?php |
||
15 | class InputFile |
||
16 | { |
||
17 | /** |
||
18 | * The path of the file |
||
19 | * @var string |
||
20 | */ |
||
21 | public $path = ''; |
||
22 | |||
23 | /** |
||
24 | * The actual stream to the file |
||
25 | * @var int |
||
26 | */ |
||
27 | private $stream = null; |
||
28 | |||
29 | 5 | public function __construct(string $path) |
|
34 | |||
35 | /** |
||
36 | * Will setup the stream |
||
37 | * |
||
38 | * @return InputFile |
||
39 | */ |
||
40 | 5 | private function setStream(): InputFile |
|
50 | |||
51 | 4 | public function getStream() |
|
56 | } |
||
57 |
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..