mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-25 16:21:23 +02:00
Fix pretty printing of include
expressions
This commit is contained in:
@@ -25,6 +25,8 @@ Version 0.9.4-dev
|
||||
|
||||
* An interface for the node traversation has been added: `PHPParser_NodeTraverserInterface`
|
||||
|
||||
* Fix pretty printing of `include` expressions (precedence information was missing)
|
||||
|
||||
Version 0.9.3 (22.11.2012)
|
||||
--------------------------
|
||||
|
||||
|
@@ -60,6 +60,7 @@ abstract class PHPParser_PrettyPrinterAbstract
|
||||
'Expr_LogicalAnd' => array(16, -1),
|
||||
'Expr_LogicalXor' => array(17, -1),
|
||||
'Expr_LogicalOr' => array(18, -1),
|
||||
'Expr_Include' => array(19, -1),
|
||||
);
|
||||
|
||||
protected $noIndentToken;
|
||||
|
7
test/code/prettyPrinter/include.test
Normal file
7
test/code/prettyPrinter/include.test
Normal file
@@ -0,0 +1,7 @@
|
||||
Include
|
||||
-----
|
||||
<?php
|
||||
|
||||
(include $foo) && (include $bar);
|
||||
-----
|
||||
(include $foo) && (include $bar);
|
Reference in New Issue
Block a user