- Fixed the request() function which was not working at all
This commit is contained in:
parent
8df38b568c
commit
09408827da
@ -51,7 +51,7 @@ class Request implements Extension {
|
||||
|
||||
public function request(? string $variableName = null, $default = null)
|
||||
{
|
||||
return $variableName === null ? array_merge(get(null), post(null)) : $this->post($variableName) ?? $this->get($variableName) ?? $default;
|
||||
return $variableName === null ? array_merge($this->get(), $this->post()) : $this->post($variableName) ?? $this->get($variableName) ?? $default;
|
||||
}
|
||||
|
||||
public function server(? string $variableName = null, $default = null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user