- Fixed the request() function which was not working at all

This commit is contained in:
Dave M. 2021-03-01 16:36:59 +00:00
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)