refactor: fix some of phpstan's ignored errors

This commit is contained in:
Yassine Doghri 2023-06-13 16:05:02 +00:00
commit 4c1a3e5015
67 changed files with 450 additions and 361 deletions

View file

@ -36,6 +36,11 @@ class ExampleDatabaseTest extends CIUnitTestCase
$this->setPrivateProperty($model, 'tempUseSoftDeletes', true);
$object = $model->first();
if (! is_object($object)) {
return;
}
$model->delete($object->id);
// The model should no longer find it