1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-04 02:07:59 +01:00
PHP-Parser/test/code/formatPreservation/nopCommentAtEnd.test

11 lines
188 B
Plaintext
Raw Normal View History

Nop statement with comment at end (#513)
-----
<?php
$foo;
$bar;
-----
$stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
-----
<?php
$foo;
//Some comment here