mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
Fix pretty printing of include
expressions
This commit is contained in:
parent
f9c3aa2a22
commit
77c08a75c9
@ -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);
|
Loading…
Reference in New Issue
Block a user