Skip to content

Commit

Permalink
Fix ci lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 28, 2024
1 parent 7a8b9d6 commit af705d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/web/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ public function bindActionParams($action, $params)
foreach ($method->getParameters() as $param) {
$name = $param->getName();
if (array_key_exists($name, $params)) {
$isValid = true;
$isValid = true;
$isArray = ($type = $param->getType()) instanceof \ReflectionNamedType && $type->getName() === 'array';

if ($isArray) {
$params[$name] = (array)$params[$name];
} elseif (is_array($params[$name])) {
Expand Down

0 comments on commit af705d9

Please sign in to comment.