Skip to content

Commit

Permalink
Add missing array key checks when using the debug_backtrace() function
Browse files Browse the repository at this point in the history
  • Loading branch information
ste93cry committed Jan 8, 2022
1 parent 907b0ed commit e3199c4
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 e3199c4

Please sign in to comment.