change behaviour of HTTP/Request get

This commit is contained in:
msquare 2017-11-19 15:16:01 +01:00
parent 15c50ab315
commit 0ee7df4883
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@ class Request extends SymfonyRequest
*/ */
public function has($key) public function has($key)
{ {
$value = $this->input($key, null); $value = $this->input($key);
return !($value === null); return !is_null($value);
} }
/** /**