comparison vendor/nikic/php-parser/test/code/formatPreservation/anonClasses.test @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 5fb285c0d0e3
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
12 ----- 12 -----
13 <?php 13 <?php
14 new class 14 new class
15 ($x, $y) 15 ($x, $y)
16 { }; 16 { };
17 -----
18 <?php
19 new class
20 {};
21 -----
22 // Ignore name assigned to anon class
23 $new = $stmts[0]->expr;
24 $new->class->name = new Node\Identifier('Anon1');
25 -----
26 <?php
27 new class
28 {};