Accurate description of what is returned

This commit is contained in:
Simon Males 2013-09-11 22:28:09 +08:00
parent 50ad043092
commit 8311a16ebd

View file

@ -583,7 +583,7 @@ class View extends Object {
* *
* @param string $var The view var you want the contents of. * @param string $var The view var you want the contents of.
* @param mixed $default The default/fallback content of $var. * @param mixed $default The default/fallback content of $var.
* @return mixed The content of the named var if its set, otherwise null. * @return mixed The content of the named var if its set, otherwise $default.
*/ */
public function get($var, $default = null) { public function get($var, $default = null) {
if (!isset($this->viewVars[$var])) { if (!isset($this->viewVars[$var])) {