It seems like \Illuminate\Support\Facades\Storage::disk() of type object<Illuminate\Contra...\Filesystem\Filesystem> is incompatible with the declared type object<Illuminate\Support\Facades\Storage> of property $filesystem.
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...
24
}
25
26
/**
27
* @param string $directory
28
*
29
* @return $this
30
*/
31
public function setDirectory(string $directory)
32
{
33
$this->directory = $directory;
34
35
return $this;
36
}
37
38
/**
39
* @param string $driver
40
*
41
* @return $this
42
*/
43
public function setFileSystemDriver(string $driver)
It seems like \Illuminate\Support\Facades\Storage::disk($driver) of type object<Illuminate\Contra...\Filesystem\Filesystem> is incompatible with the declared type object<Illuminate\Support\Facades\Storage> of property $filesystem.
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...
46
47
return $this;
48
}
49
50
/**
51
* @param int $minutes
52
*
53
* @return \Illuminate\Support\Collection
54
*/
55
public function deleteFilesOlderThanMinutes(int $minutes) : Collection
The method allFiles() does not seem to exist on object<Illuminate\Support\Facades\Storage>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method lastModified() does not seem to exist on object<Illuminate\Support\Facades\Storage>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method delete() does not seem to exist on object<Illuminate\Support\Facades\Storage>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
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..