Skip to content

Commit 62c485f

Browse files
committed
Fix explicit comparison of the constructor argument
1 parent 5477a99 commit 62c485f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VanillaCookieCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class VanillaCookieCore implements CookieCore
1616
*/
1717
public function __construct(array &$cookies = null)
1818
{
19-
if ($cookies === null) {
19+
if ($cookies !== null) {
2020
$this->cookies = & $cookies;
2121
} else {
2222
$this->cookies = & $_COOKIE;

0 commit comments

Comments
 (0)