summaryrefslogtreecommitdiff
path: root/src/Http
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 15:16:01 +0100
committermsquare <msquare@notrademark.de>2017-11-19 15:16:01 +0100
commit0ee7df4883f6fab471aaa9130017483d4b91a754 (patch)
tree77f2c4160a93874bd4f0e9c478c9bcf9f768a1e5 /src/Http
parent15c50ab3153a53fbb93dbb9266a1f369ba6393ad (diff)
change behaviour of HTTP/Request get
Diffstat (limited to 'src/Http')
-rw-r--r--src/Http/Request.php4
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);
}
/**