Skip to content

Commit

Permalink
Fix warning in cookie array when none exist
Browse files Browse the repository at this point in the history
  • Loading branch information
embluk committed May 16, 2020
1 parent 847fd49 commit 06ecaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Polyel/src/Http/Request.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function capture($request)

$this->queries = $request->get;

$this->cookies = $request->cookie;
$this->cookies = $request->cookie ?? [];

$this->files = $request->files;

Expand Down

0 comments on commit 06ecaff

Please sign in to comment.