From 8e9fc9d7d55a0eb34a2d76f428adb7c1f3a35492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Robles?= Date: Mon, 23 Oct 2023 17:19:28 +0200 Subject: [PATCH] fix types typo --- src/PropertiesMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PropertiesMapper.php b/src/PropertiesMapper.php index ad088c0..4ea69f1 100644 --- a/src/PropertiesMapper.php +++ b/src/PropertiesMapper.php @@ -161,7 +161,7 @@ public function get(): array * * @param class-string<\Illuminate\Database\Eloquent\Model> $model */ - protected function getModelInstance(string|array $model, mixed $id, string $usingAttribute = null, array $with = []) + protected function getModelInstance(string $model, mixed $id, string $usingAttribute = null, array $with = []) { if (is_a($id, $model)) { return empty($with) ? $id : $id->loadMissing($with);