Added BadMethodCallException to view's __callStatic method.
This commit is contained in:
parent
85936b3c20
commit
060e1f64b8
|
@ -350,6 +350,8 @@ public static function __callStatic($method, $parameters)
|
|||
{
|
||||
return static::of(substr($method, 3), Arr::get($parameters, 0, array()));
|
||||
}
|
||||
|
||||
throw new \BadMethodCallException("Method [$method] is not defined on the View class.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue