It seems like $file of type object<rkit\filemanager\models\File> is incompatible with the declared type object<rkit\filemanager\File> of property $file.
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..
Loading history...
36
35
}
37
38
/**
39
* Get a file
40
*
41
* @return File
42
* @throws InvalidParamException
43
*/
44
35
public function getFile()
45
{
46
35
if ($this->file === null) {
47
1
throw new InvalidParamException('The file is not initialized');
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..