Permalink
Browse files

Accurate description of what is returned

  • Loading branch information...
1 parent 50ad043 commit 8311a16ebd6c1cf71bf7e8b3a8b05ad3c30e48ea @sime sime committed Sep 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/View.php
View
2 lib/Cake/View/View.php
@@ -583,7 +583,7 @@ public function getVar($var) {
*
* @param string $var The view var you want the contents of.
* @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) {
if (!isset($this->viewVars[$var])) {

0 comments on commit 8311a16

Please sign in to comment.