Skip to content

Commit

Permalink
Convert array syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 22, 2013
1 parent e69a549 commit 823c731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Utility/ViewVarsTrait.php
Expand Up @@ -28,7 +28,7 @@ trait ViewVarsTrait {
*
* @var array
*/
public $viewVars = array();
public $viewVars = [];

/**
* Saves a variable for use inside a template.
Expand All @@ -47,7 +47,7 @@ public function set($one, $two = null) {
$data = $one;
}
} else {
$data = array($one => $two);
$data = [$one => $two];
}
$this->viewVars = $data + $this->viewVars;
}
Expand Down

0 comments on commit 823c731

Please sign in to comment.