From 0ee7df4883f6fab471aaa9130017483d4b91a754 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 19 Nov 2017 15:16:01 +0100 Subject: [PATCH] change behaviour of HTTP/Request get --- src/Http/Request.php | 4 ++-- 1 file 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); } /**