Return types
This commit is contained in:
@@ -12,7 +12,7 @@ class Request
|
||||
return SimpleRouter::request();
|
||||
}
|
||||
|
||||
public static function header($name, $defaultValue = null, $tryParse = true)
|
||||
public static function header(string $name, $defaultValue = null, bool $tryParse = true): ?string
|
||||
{
|
||||
return request()->getHeader($name, $defaultValue, $tryParse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user