This commit is contained in:
Fabien Potencier
2025-02-14 12:56:13 +01:00
parent 640b382a51
commit 151aa4ecda
32 changed files with 44 additions and 71 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class OptimizerTest extends TestCase
public function checkForVarConfiguration(Node $node, $target)
{
foreach ($node as $n) {
if (NameExpression::class === \get_class($n) && $target === $n->getAttribute('name')) {
if (NameExpression::class === $n::class && $target === $n->getAttribute('name')) {
$this->assertTrue($n->getAttribute('always_defined'));
} else {
$this->checkForVarConfiguration($n, $target);