Skip to content

Commit d26db2d

Browse files
Remove code that deals with legacy behavior of PHP_Incomplete_Class
1 parent 9d4cfb8 commit d26db2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Internal/Exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
6060
$value = self::prepare($value, $objectsPool, $refsPool, $objectsCount, $valueIsStatic);
6161
}
6262
goto handle_value;
63-
} elseif (!\is_object($value) && !$value instanceof \__PHP_Incomplete_Class || $value instanceof \UnitEnum) {
63+
} elseif (!\is_object($value) || $value instanceof \UnitEnum) {
6464
goto handle_value;
6565
}
6666

VarExporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function export($value, bool &$isStaticValue = null, array &$found
4444
{
4545
$isStaticValue = true;
4646

47-
if (!\is_object($value) && !(\is_array($value) && $value) && !$value instanceof \__PHP_Incomplete_Class && !\is_resource($value) || $value instanceof \UnitEnum) {
47+
if (!\is_object($value) && !(\is_array($value) && $value) && !\is_resource($value) || $value instanceof \UnitEnum) {
4848
return Exporter::export($value);
4949
}
5050

0 commit comments

Comments
 (0)