mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
Change test to use correct node type
Class name is an Identifier, not a Name.
This commit is contained in:
parent
1f95f9215c
commit
d5180f0d95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user