Skip to content

Commit

Permalink
修复如果数值为0的时候的时候判定null成立
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Feb 7, 2023
1 parent d0d32b9 commit 20ae2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AnnotationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __hook(?array $actionArg = [],?array $onRequestArg = null)
$temps = AttributeCache::getInstance()
->getClassMethodParams(static::class,$this->getActionName());
foreach ($temps as $keyKey => $temp){
$temps[$keyKey] = $actionParams[$keyKey] ?: null;
$temps[$keyKey] = $actionParams[$keyKey] !== null ? $actionParams[$keyKey] : null;
}
$actionArg[$key] = $temps;
}else{
Expand Down

0 comments on commit 20ae2e6

Please sign in to comment.