Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 082e863

Browse files
authored
Merge pull request #906 from shemgp/patch-1
Make it work with PHP 8.0
2 parents 2930a1e + 1fdfe32 commit 082e863

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Validation/Rules/DenyTrashed.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public function isValid()
3030
*/
3131
protected function isTrashed()
3232
{
33-
return method_exists($this->model, 'trashed') && $this->model->trashed();
33+
return $this->model
34+
? method_exists($this->model, 'trashed') && $this->model->trashed()
35+
: false;
3436
}
3537
}

0 commit comments

Comments
 (0)