Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2e0d3e

Browse files
committed
[VarExporter] Remove obsolete PHP version check
1 parent 72bc29a commit f2e0d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarExporter/Internal/Exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
9090
$properties = $serializeProperties;
9191
} else {
9292
foreach ($serializeProperties as $n => $v) {
93-
$c = \PHP_VERSION_ID >= 80100 && $reflector->hasProperty($n) && ($p = $reflector->getProperty($n))->isReadOnly() ? $p->class : 'stdClass';
93+
$c = $reflector->hasProperty($n) && ($p = $reflector->getProperty($n))->isReadOnly() ? $p->class : 'stdClass';
9494
$properties[$c][$n] = $v;
9595
}
9696
}

0 commit comments

Comments
 (0)