php-parser/test/code/formatPreservation/nopCommentAtEnd.test
openex27 df64d86cf4 Check for empty $append in safeAppend()
Can happen with Nop statements.
2018-07-07 12:34:07 +02:00

11 lines
188 B
Plaintext

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