Skip to content

Commit

Permalink
[11.x] Use contracts instead of concrete type for (#51425)
Browse files Browse the repository at this point in the history
`resolveRouteBindingQuery()`

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored May 16, 2024
1 parent 74c74ec commit 5e1e328
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Concerns/HasUlids.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Concerns/HasUuids.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5e1e328

Please sign in to comment.