Skip to content

Commit

Permalink
Fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jul 12, 2024
1 parent b6eed37 commit 94302e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ActiveRelationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ protected function filterByModels(array $models): void
$values = [...$scalarValues, ...$nonScalarValues];

$attribute = reset($attributes);
/** @var string $columnName */
$columnName = array_key_first($this->link);

match ($this->getARInstance()->columnType($columnName)) {
Expand Down

0 comments on commit 94302e0

Please sign in to comment.