Skip to content

Commit 4cf1ae4

Browse files
[VarExporter] minor CS tweak
1 parent f3c3c0b commit 4cf1ae4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,17 @@ public static function getClassReflector($class, $instantiableWithoutConstructor
6767
if (self::$instantiableWithoutConstructor[$class] = $instantiableWithoutConstructor || !$reflector->isFinal()) {
6868
$proto = $reflector->newInstanceWithoutConstructor();
6969
} else {
70-
self::$instantiableWithoutConstructor[$class] = true;
7170
$r = $reflector;
7271
do {
7372
if ($r->isInternal()) {
74-
self::$instantiableWithoutConstructor[$class] = false;
7573
if (false === $proto = @unserialize('O:'.\strlen($class).':"'.$class.'":0:{}')) {
7674
throw new \Exception(sprintf("Serialization of '%s' is not allowed", $class));
7775
}
7876
break;
7977
}
8078
} while ($r = $r->getParentClass());
8179

82-
if (!$r) {
80+
if (self::$instantiableWithoutConstructor[$class] = !$r) {
8381
$proto = $reflector->newInstanceWithoutConstructor();
8482
}
8583
}

0 commit comments

Comments
 (0)