Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emhovis committed Feb 6, 2024
1 parent 7fdcec5 commit 3dc9e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/ModelRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ private function generateModelName(Model $model): string
);
$i = 1;
while (\in_array($name, $names, true)) {
$i++;
++$i;
$name = $base.$i;
}

if($i > 1) {
if ($i > 1) {
$this->logger->info(sprintf('Can not assign a name for the model, the name "%s" is now being used %s times', $base, $i), [
'model' => $this->modelToArray($model),
'taken_by' => $this->modelToArray($this->registeredModelNames[$base]),
Expand Down

0 comments on commit 3dc9e19

Please sign in to comment.