From 06ecaffa7af13b413f64f5777ac7df898b8f214e Mon Sep 17 00:00:00 2001 From: embluk Date: Sat, 16 May 2020 22:00:27 +0100 Subject: [PATCH] Fix warning in cookie array when none exist --- Polyel/src/Http/Request.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyel/src/Http/Request.class.php b/Polyel/src/Http/Request.class.php index dcaf6de6..cfc7f116 100644 --- a/Polyel/src/Http/Request.class.php +++ b/Polyel/src/Http/Request.class.php @@ -59,7 +59,7 @@ public function capture($request) $this->queries = $request->get; - $this->cookies = $request->cookie; + $this->cookies = $request->cookie ?? []; $this->files = $request->files;