Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
29
vendor/nikic/php-parser/test/code/formatPreservation/blockConversion.test
vendored
Normal file
29
vendor/nikic/php-parser/test/code/formatPreservation/blockConversion.test
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
It may be necessary to convert a single statement into a block
|
||||
-----
|
||||
<?php
|
||||
|
||||
if
|
||||
($a) $b;
|
||||
-----
|
||||
// TODO Avoid fallback
|
||||
$stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
|
||||
-----
|
||||
<?php
|
||||
|
||||
if ($a) {
|
||||
$b;
|
||||
$c;
|
||||
}
|
||||
-----
|
||||
<?php
|
||||
|
||||
if
|
||||
($a) {$b;}
|
||||
-----
|
||||
$stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
|
||||
-----
|
||||
<?php
|
||||
|
||||
if
|
||||
($a) {$b;
|
||||
$c;}
|
Reference in a new issue