mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
refactor: fix some of phpstan's ignored errors
This commit is contained in:
parent
0de9c1ad23
commit
4c1a3e5015
67 changed files with 450 additions and 361 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue