This commit is contained in:
Yuri Kuznetsov
2022-02-11 13:01:55 +02:00
parent 3b414d1077
commit 3fed1a5ae8
+2 -2
View File
@@ -36,7 +36,7 @@ class ObjectUtil
/**
* Deep clone.
*/
public static function clone(StdClass $source): stdClass
public static function clone(stdClass $source): stdClass
{
$cloned = (object) [];
@@ -59,7 +59,7 @@ class ObjectUtil
return $cloned;
}
if ($item instanceof StdClass) {
if ($item instanceof stdClass) {
return self::clone($item);
}