From 94302e0cc59a2976b48493dfabd6f71ddc99bd42 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Fri, 12 Jul 2024 19:53:41 +0700 Subject: [PATCH] Fix psalm issue --- src/ActiveRelationTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ActiveRelationTrait.php b/src/ActiveRelationTrait.php index 275d9d6cd..0afb755fc 100644 --- a/src/ActiveRelationTrait.php +++ b/src/ActiveRelationTrait.php @@ -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)) {