Skip to content

Commit 67b3b0c

Browse files
committed
minor #51189 [VarExporter] Remove obsolete PHP version check (derrabus)
This PR was merged into the 6.4 branch. Discussion ---------- [VarExporter] Remove obsolete PHP version check | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Follows #51017 | License | MIT | Doc PR | not needed Commits ------- f2e0d3e [VarExporter] Remove obsolete PHP version check
2 parents a830ccc + f2e0d3e commit 67b3b0c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy