Forgot the nullables!
This commit is contained in:
parent
3684fc3b0c
commit
21275d68f9
1 changed files with 2 additions and 2 deletions
|
@ -93,12 +93,12 @@ class RequestVar
|
|||
return empty($this->value) ? $default : (int)$this->value;
|
||||
}
|
||||
|
||||
public function bool(?bool $default = null): bool
|
||||
public function bool(?bool $default = null): ?bool
|
||||
{
|
||||
return empty($this->value) ? $default : (bool)$this->value;
|
||||
}
|
||||
|
||||
public function float(?float $default = null): float
|
||||
public function float(?float $default = null): ?float
|
||||
{
|
||||
return empty($this->value) ? $default : (float)$this->value;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue