Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d308662

Browse files
committedJan 9, 2023
UI\Component: removed references returned by getParameters() [Closes nette/nette#703][Closes #69]
1 parent 95fcfbf commit d308662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Application/UI/Component.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ final public function getParameter(string $name): mixed
200200
*/
201201
final public function getParameters(): array
202202
{
203-
return $this->params;
203+
return array_map(fn($item) => $item, $this->params);
204204
}
205205

206206

0 commit comments

Comments
 (0)
Please sign in to comment.