mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Revert "Fix var_export() not working for ArrayObject class"
This reverts commit e527269633.
This commit is contained in:
parent
67047c0939
commit
7e48c4989e
1 changed files with 4 additions and 1 deletions
|
|
@ -418,7 +418,10 @@ function url2path($url)
|
|||
function var_export_clean($var)
|
||||
{
|
||||
$result = var_export($var, true);
|
||||
$result = preg_replace('/(?:ArrayObject|stdClass)::__set_state\((?=array\(\n)/', '(object)(', $result);
|
||||
if (version_compare(PHP_VERSION, '7.3', '<'))
|
||||
{
|
||||
$result = preg_replace('/stdClass::__set_state\((?=array\(\n)/', '(object)(', $result);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue