Change test to use correct node type

Class name is an Identifier, not a Name.
This commit is contained in:
Nikita Popov 2019-01-12 17:29:42 +01:00
parent 1f95f9215c
commit d5180f0d95

View File

@ -21,7 +21,7 @@ new class
-----
// Ignore name assigned to anon class
$new = $stmts[0]->expr;
$new->class->name = new Node\Name('Anon1');
$new->class->name = new Node\Identifier('Anon1');
-----
<?php
new class