| 1 | <?php |
||
| 8 | class HealthCheckFailure |
||
| 9 | { |
||
| 10 | /** @var \Spatie\Backup\Tasks\Monitor */ |
||
| 11 | protected $healthCheck; |
||
| 12 | |||
| 13 | /** @var \Exception */ |
||
| 14 | protected $exception; |
||
| 15 | |||
| 16 | public function __construct(HealthCheck $healthCheck, Exception $exception) |
||
| 22 | |||
| 23 | public function healthCheck(): HealthCheck |
||
| 27 | |||
| 28 | public function exception(): Exception |
||
| 32 | |||
| 33 | public function wasUnexpected(): bool |
||
| 37 | } |
||
| 38 |
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..