mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Fix typos
This commit is contained in:
parent
22ef0de7ef
commit
7503356e03
@ -1,5 +1,5 @@
|
|||||||
Upgrading from PHP-Parser 0.9 to 1.0
|
Upgrading from PHP-Parser 0.9 to 1.0
|
||||||
------------------------------------
|
====================================
|
||||||
|
|
||||||
### PHP version requirements
|
### PHP version requirements
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ further changes.
|
|||||||
Old (still works, but discouraged):
|
Old (still works, but discouraged):
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$parser = new \PHPParser_Parser(new PHPParser_Lexer_Emulative);
|
$parser = new \PHPParser_Parser(new \PHPParser_Lexer_Emulative);
|
||||||
$prettyPrinter = new \PHPParser_PrettyPrinter_Default;
|
$prettyPrinter = new \PHPParser_PrettyPrinter_Default;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ not contain the trailing underscore that may be present in the class name. As su
|
|||||||
cases.
|
cases.
|
||||||
|
|
||||||
However, some node classes have been moved to a different namespace or renamed, which will result in a different
|
However, some node classes have been moved to a different namespace or renamed, which will result in a different
|
||||||
''Node::getType()'' output:
|
`Node::getType()` output:
|
||||||
|
|
||||||
```
|
```
|
||||||
Expr_AssignBitwiseAnd => Expr_AssignOp_BitwiseAnd
|
Expr_AssignBitwiseAnd => Expr_AssignOp_BitwiseAnd
|
||||||
@ -89,7 +89,7 @@ Scalar_NSConst => Scalar_MagicConst_Namespace
|
|||||||
Scalar_TraitConst => Scalar_MagicConst_Trait
|
Scalar_TraitConst => Scalar_MagicConst_Trait
|
||||||
```
|
```
|
||||||
|
|
||||||
These changes may affect custom pretty printers and code comparing the return value of ''Node::getType()'' to specific
|
These changes may affect custom pretty printers and code comparing the return value of `Node::getType()` to specific
|
||||||
strings.
|
strings.
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
Loading…
Reference in New Issue
Block a user