From 40b1d1290f72f1c4534ae3bc7a90bdbc091904dd Mon Sep 17 00:00:00 2001 From: Ivo Toman Date: Thu, 27 Feb 2020 19:39:09 +0100 Subject: [PATCH] Fix compatibility with nette/application 3.0.3 --- composer.json | 2 +- src/SecuredLinksControlTrait.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 514d6b9..16f7dad 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": "^7.1", - "nette/application": "^3.0", + "nette/application": "^3.0.3", "nette/utils": "^3.0", "nette/reflection": "^2.4" }, diff --git a/src/SecuredLinksControlTrait.php b/src/SecuredLinksControlTrait.php index 567b214..093e586 100644 --- a/src/SecuredLinksControlTrait.php +++ b/src/SecuredLinksControlTrait.php @@ -52,8 +52,8 @@ public function signalReceived(string $signal): void } if (isset($this->params[$param->name])) { $params[$param->name] = $this->params[$param->name]; - list($type, $isClass) = Nette\Application\UI\ComponentReflection::getParameterType($param); - Nette\Application\UI\ComponentReflection::convertType($params[$param->name], $type, $isClass); + $type = Nette\Application\UI\ComponentReflection::getParameterType($param); + Nette\Application\UI\ComponentReflection::convertType($params[$param->name], $type); } } }