mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Accurate description of what is returned
This commit is contained in:
parent
50ad043092
commit
8311a16ebd
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ class View extends Object {
|
|||
*
|
||||
* @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])) {
|
||||
|
|
Loading…
Reference in a new issue