Skip to content

Commit

Permalink
Update RedisSessionHandler.php
Browse files Browse the repository at this point in the history
fixed unserialize() expects parameter 2 to be array, null given in
  • Loading branch information
huangzhhui authored Mar 13, 2018
1 parent 07723af commit 054dadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler/RedisSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function serialize($value)
*/
protected function unserialize($value)
{
return is_numeric($value) ? $value : unserialize($value, null);
return is_numeric($value) ? $value : unserialize($value, []);
}

}
}

0 comments on commit 054dadf

Please sign in to comment.