From 949c28b2024e0387d2137575aee5f4e99c159483 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 24 Oct 2022 19:16:48 +0200 Subject: [PATCH] UI\Component: removed references returned by getParameters() [Closes nette/nette#703][Closes #69] --- src/Application/UI/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/UI/Component.php b/src/Application/UI/Component.php index cc91e4b41..93a643597 100644 --- a/src/Application/UI/Component.php +++ b/src/Application/UI/Component.php @@ -200,7 +200,7 @@ final public function getParameter(string $name): mixed */ final public function getParameters(): array { - return $this->params; + return array_map(fn($item) => $item, $this->params); }