From 060e1f64b8ab7a71382948a3c5966a15a4b5f15b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 16 Nov 2011 13:12:33 -0600 Subject: [PATCH] Added BadMethodCallException to view's __callStatic method. --- laravel/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/laravel/view.php b/laravel/view.php index bc3eefcd..a8ffd915 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -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."); } -} +} \ No newline at end of file