Skip to content

Commit 365be33

Browse files
committed
Use explicit comparison of the constructor argument
1 parent 18c6c55 commit 365be33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/VanillaSession.php

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

0 commit comments

Comments
 (0)