File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
Upgrading from PHP-Parser 0.9 to 1.0
2
- ------------------------------------
2
+ ====================================
3
3
4
4
### PHP version requirements
5
5
@@ -15,7 +15,7 @@ further changes.
15
15
Old (still works, but discouraged):
16
16
17
17
``` php
18
- $parser = new \PHPParser_Parser(new PHPParser_Lexer_Emulative);
18
+ $parser = new \PHPParser_Parser(new \ PHPParser_Lexer_Emulative);
19
19
$prettyPrinter = new \PHPParser_PrettyPrinter_Default;
20
20
```
21
21
@@ -39,7 +39,7 @@ not contain the trailing underscore that may be present in the class name. As su
39
39
cases.
40
40
41
41
However, some node classes have been moved to a different namespace or renamed, which will result in a different
42
- '' Node::getType()'' output:
42
+ ` Node::getType() ` output:
43
43
44
44
```
45
45
Expr_AssignBitwiseAnd => Expr_AssignOp_BitwiseAnd
@@ -89,7 +89,7 @@ Scalar_NSConst => Scalar_MagicConst_Namespace
89
89
Scalar_TraitConst => Scalar_MagicConst_Trait
90
90
```
91
91
92
- These changes may affect custom pretty printers and code comparing the return value of '' Node::getType()'' to specific
92
+ These changes may affect custom pretty printers and code comparing the return value of ` Node::getType() ` to specific
93
93
strings.
94
94
95
95
### Miscellaneous
You can’t perform that action at this time.
0 commit comments