| 1 | <?php |
||
| 9 | class DirectoryCleaner |
||
| 10 | { |
||
| 11 | /** @var \Illuminate\Support\Facades\Storage */ |
||
| 12 | protected $filesystem; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $directory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * DirectoryCleaner constructor. |
||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $directory |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setDirectory(string $directory) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $driver |
||
| 40 | * |
||
| 41 | * @return $this |
||
| 42 | */ |
||
| 43 | public function setFileSystemDriver(string $driver) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param int $minutes |
||
| 52 | * |
||
| 53 | * @return \Illuminate\Support\Collection |
||
| 54 | */ |
||
| 55 | public function deleteFilesOlderThanMinutes(int $minutes) : Collection |
||
| 68 | } |
||
| 69 |
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..