Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
added type constraint on findOrFail() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur LORENT committed May 30, 2018
1 parent 1d92f72 commit 96de712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BuilderOverride.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function find(int $id, array $columns = ['*'])
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function findOrFail($id, $columns = ['*'])
public function findOrFail(int $id, array $columns = ['*'])
{
$result = $this->find($id, $columns);
if (is_array($id)) {
Expand Down

0 comments on commit 96de712

Please sign in to comment.