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

View File

@@ -350,6 +350,8 @@ class View {
{
return static::of(substr($method, 3), Arr::get($parameters, 0, array()));
}
throw new \BadMethodCallException("Method [$method] is not defined on the View class.");
}
}
}