mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing reference operators in view class constructors.
This commit is contained in:
parent
d044cdd02f
commit
85e072a64b
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class ThemeView extends View {
|
|||
*
|
||||
* @param Controller $controller Controller object to be rendered.
|
||||
*/
|
||||
function __construct(&$controller) {
|
||||
function __construct($controller) {
|
||||
parent::__construct($controller);
|
||||
$this->theme = $controller->theme;
|
||||
}
|
||||
|
|
|
@ -289,7 +289,7 @@ class View extends Object {
|
|||
*
|
||||
* @param Controller $controller A controller object to pull View::__passedArgs from.
|
||||
*/
|
||||
function __construct(&$controller) {
|
||||
function __construct($controller) {
|
||||
if (is_object($controller)) {
|
||||
$count = count($this->__passedVars);
|
||||
for ($j = 0; $j < $count; $j++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue