Fix var_export() not working for stdClass in PHP < 7.3

This commit is contained in:
Kijin Sung 2018-12-13 15:22:11 +09:00
parent a2c9274681
commit 3f7f802585
8 changed files with 40 additions and 43 deletions

View file

@ -337,7 +337,7 @@ class Storage
{
$comment = "/* $comment */\n";
}
return self::write($filename, '<' . '?php ' . $comment . 'return unserialize(' . var_export(serialize($data), true) . ');');
return self::write($filename, '<' . '?php ' . $comment . 'return ' . var_export_clean($data) . ';');
}
/**