Return types
This commit is contained in:
@@ -6,24 +6,22 @@ use Khofmann\Request\Request;
|
||||
|
||||
class Input
|
||||
{
|
||||
|
||||
|
||||
public static function post($index, $defaultValue = null)
|
||||
public static function post(string $index, $defaultValue = null)
|
||||
{
|
||||
return Request::request()->getInputHandler()->post($index, $defaultValue);
|
||||
}
|
||||
|
||||
public static function patch($index, $defaultValue = null)
|
||||
public static function patch(string $index, $defaultValue = null)
|
||||
{
|
||||
return Request::request()->getInputHandler()->post($index, $defaultValue);
|
||||
}
|
||||
|
||||
public static function get($index, $defaultValue = null)
|
||||
public static function get(string $index, $defaultValue = null)
|
||||
{
|
||||
return Request::request()->getInputHandler()->get($index, $defaultValue);
|
||||
}
|
||||
|
||||
public static function file($index, $defaultValue = null)
|
||||
public static function file(string $index, $defaultValue = null)
|
||||
{
|
||||
return Request::request()->getInputHandler()->file($index, $defaultValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user