Added BadMethodCallException to view's __callStatic method.

This commit is contained in:
Taylor Otwell 2011-11-16 13:12:33 -06:00
parent 85936b3c20
commit 060e1f64b8
1 changed files with 3 additions and 1 deletions

View File

@ -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.");
}
}
}