Fix Session SessionCache not return bool in 7.1

This commit is contained in:
Florian Bouillon 2019-04-26 23:22:18 +02:00
parent 6799b8d8a2
commit 043343e7aa

View File

@ -58,7 +58,8 @@ class SessionCache extends AbstractCache
public function clear()
{
if (phpversion() !== false && version_compare(phpversion(), '7.2.0', '<')) {
dump(phpversion());
if (phpversion() !== false && version_compare(phpversion(), '7.2.0', '>=')) {
return session_reset();
}
session_reset();