| 1 | <?php |
||
| 20 | abstract class Storage implements StorageInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var File |
||
| 24 | */ |
||
| 25 | private $file; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Set a file |
||
| 29 | * |
||
| 30 | * @param File $file File |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 35 | public function setFile(\rkit\filemanager\models\File $file) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get a file |
||
| 40 | * |
||
| 41 | * @return File |
||
| 42 | * @throws InvalidParamException |
||
| 43 | */ |
||
| 44 | 35 | public function getFile() |
|
| 52 | } |
||
| 53 |
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..