8000 [VarExporter] Fix psalm workaround · symfony/symfony@9e566e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e566e4

Browse files
[VarExporter] Fix psalm workaround
1 parent 174c92e commit 9e566e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ public static function p($class)
5959
public static function f($class)
6060
{
6161
$reflector = self::$reflectors[$class] ?? self::getClassReflector($class, true, false);
62-
self::$factories[$class] = $reflector->newInstanceWithoutConstructor(...);
6362

64-
return self::$factories[$class];
63+
return self::$factories[$class] = [$reflector, 'newInstanceWithoutConstructor'](...);
6564
}
6665

6766
public static function getClassReflector($class, $instantiableWithoutConstructor = false, $cloneable = null)

0 commit comments

Comments
 (0)
0