Skip to content

Commit cda17f4

Browse files
committed
UI\PresenterComponent: removed references created by loadState() for persistent parameters. [Closes nette/nette#703]
This is experimental commit, I hope it will not cause any BC break.
1 parent f6a003b commit cda17f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/UI/PresenterComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public function loadState(array $params)
145145
if (!$reflection->convertType($params[$name], $type)) {
146146
throw new Nette\Application\BadRequestException("Invalid value for persistent parameter '$name' in '{$this->getName()}', expected " . ($type === 'NULL' ? 'scalar' : $type) . ".");
147147
}
148-
$this->$name = & $params[$name];
148+
$this->$name = $params[$name];
149149
} else {
150-
$params[$name] = & $this->$name;
150+
$params[$name] = $this->$name;
151151
}
152152
}
153153
$this->params = $params;

0 commit comments

Comments
 (0)