It seems like \Illuminate\Support\Facades\Storage::disk() of type object<Illuminate\Contra...\Filesystem\Filesystem> is incompatible with the declared type object<Illuminate\Filesystem\Filesystem> 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\Filesystem\Filesystem> 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...
47
48
return $this;
49
}
50
51
/**
52
* @param int $minutes
53
*
54
* @return \Illuminate\Support\Collection
55
*/
56
public function deleteFilesOlderThanMinutes(int $minutes): Collection
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..