Skip to content

Commit

Permalink
Fix compatibility with nette/application 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorius committed Feb 27, 2020
1 parent 8ae427f commit 40b1d12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/SecuredLinksControlTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 40b1d12

Please sign in to comment.