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); } } }