| 1 | <?php |
||
| 8 | class Backup |
||
| 9 | { |
||
| 10 | /** @var \Spatie\Backup\BackupDestination\Disk */ |
||
| 11 | protected $disk; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $path; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param \Illuminate\Contracts\Filesystem\Filesystem $disk |
||
| 18 | * @param string $path |
||
| 19 | */ |
||
| 20 | public function __construct(Filesystem $disk, $path) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function path() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function exists() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return \Carbon\Carbon |
||
| 44 | */ |
||
| 45 | public function date() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get the size in bytes. |
||
| 52 | * |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function size() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Delete the backup from the disk. |
||
| 66 | */ |
||
| 67 | public function delete() |
||
| 72 | } |
||
| 73 |
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..