refactor: fix some of phpstan's ignored errors

This commit is contained in:
Yassine Doghri
2023-06-13 16:05:02 +00:00
parent 0de9c1ad23
commit 4c1a3e5015
67 changed files with 444 additions and 355 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