From 8a93d35e7ad32200548efb70d8f3bc16bc8ffcce Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 16 May 2024 16:05:33 +0800 Subject: [PATCH] [11.x] Use contracts instead of concrete type for `resolveRouteBindingQuery()` Signed-off-by: Mior Muhammad Zaki --- src/Illuminate/Database/Eloquent/Concerns/HasUlids.php | 2 +- src/Illuminate/Database/Eloquent/Concerns/HasUuids.php | 2 +- src/Illuminate/Database/Eloquent/Model.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php index 14ae1ce3ce4c..a4a47fbafabf 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php @@ -43,7 +43,7 @@ public function newUniqueId() * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value * @param string|null $field - * @return \Illuminate\Database\Query\Builder + * @return \Illuminate\Contracts\Database\Eloquent\Builder * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException */ diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php index fd8900f8a2a2..be0512cc8072 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php @@ -43,7 +43,7 @@ public function newUniqueId() * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value * @param string|null $field - * @return \Illuminate\Database\Query\Builder + * @return \Illuminate\Contracts\Database\Eloquent\Builder * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException */ diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index fb3ee10e08d2..c8360805d576 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -2131,7 +2131,7 @@ protected function childRouteBindingRelationshipName($childType) * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value * @param string|null $field - * @return \Illuminate\Database\Query\Builder + * @return \Illuminate\Contracts\Database\Eloquent\Builder */ public function resolveRouteBindingQuery($query, $value, $field = null) {