diff options
author | msquare <msquare@notrademark.de> | 2017-11-19 15:16:01 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-11-19 15:16:01 +0100 |
commit | 0ee7df4883f6fab471aaa9130017483d4b91a754 (patch) | |
tree | 77f2c4160a93874bd4f0e9c478c9bcf9f768a1e5 | |
parent | 15c50ab3153a53fbb93dbb9266a1f369ba6393ad (diff) |
change behaviour of HTTP/Request get
-rw-r--r-- | src/Http/Request.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Http/Request.php b/src/Http/Request.php index 585fb5e9..c6a9e5ad 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -38,9 +38,9 @@ class Request extends SymfonyRequest */ public function has($key) { - $value = $this->input($key, null); + $value = $this->input($key); - return !($value === null); + return !is_null($value); } /** |