diff --git a/Protocols/Http/Request.php b/Protocols/Http/Request.php index d544ac0d9..6eca3e4ef 100644 --- a/Protocols/Http/Request.php +++ b/Protocols/Http/Request.php @@ -169,7 +169,7 @@ public function cookie($name = null, $default = null) * @param string|null $name * @return array|null */ - public function file($name = null) + public function file(?string $name = null): mixed { if (!isset($this->_data['files'])) { $this->parsePost();