Skip to content

Commit 427198c

Browse files
jonnywilliamsontaylorotwell
authored andcommitted
Revert overly broad return type (#18625)
Revert an overly broad return type hint, to a more specific one. Helps developer work flow by not breaking IDE autocomplete on chaining.
1 parent 886a2e3 commit 427198c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function fromQuery($query, $bindings = [])
253253
*
254254
* @param mixed $id
255255
* @param array $columns
256-
* @return mixed
256+
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
257257
*/
258258
public function find($id, $columns = ['*'])
259259
{

0 commit comments

Comments
 (0)