Skip to content

Commit

Permalink
Add missing array key checks when using the debug_backtrace() funct…
Browse files Browse the repository at this point in the history
…ion (#552)
  • Loading branch information
ste93cry authored and hrach committed Jan 9, 2022
1 parent 2c40588 commit eccc7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/PersistenceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected static function visitEntity(IEntity $entity, IModel $model, bool $with
foreach ($bt as $item) {
if ($item['function'] === 'getCascadeQueue') {
break;
} elseif ($item['function'] === 'addRelationshipToQueue') {
} elseif ($item['function'] === 'addRelationshipToQueue' && isset($item['args'])) {
$cycle[] = get_class($item['args'][0]) . '::$' . $item['args'][1]->name;
}
}
Expand Down

0 comments on commit eccc7ba

Please sign in to comment.