mirror of
https://github.com/ad-aures/castopod.git
synced 2026-03-13 09:31:04 +08:00
refactor: fix some of phpstan's ignored errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user