Skip to content

Commit

Permalink
improt
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 20, 2017
1 parent 0a98019 commit 91c1f03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Exception;
use ArrayAccess;
use JsonSerializable;
use BadMethodCallException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Contracts\Support\Jsonable;
Expand Down Expand Up @@ -1371,8 +1372,8 @@ public function __call($method, $parameters)

try {
return $this->newQuery()->$method(...$parameters);
} catch (\BadMethodCallException $e) {
throw new \BadMethodCallException(
} catch (BadMethodCallException $e) {
throw new BadMethodCallException(
sprintf('Call to undefined method %s::%s()', get_class($this), $method)
);
}
Expand Down

0 comments on commit 91c1f03

Please sign in to comment.