You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADING.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ If these parts are supposed to be PHPDoc descriptions, you need to put whitespac
76
76
/** @return array{foo: int} } */
77
77
```
78
78
79
-
## Type aliases with invalid types are preserved
79
+
###Type aliases with invalid types are preserved
80
80
81
81
In phpdoc-parser 1.x, invalid type alias syntax was represented as [`InvalidTagValueNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.PhpDoc.InvalidTagValueNode.html), losing information about a type alias being present.
82
82
@@ -88,19 +88,19 @@ In phpdoc-parser 1.x, invalid type alias syntax was represented as [`InvalidTagV
88
88
89
89
This `@phpstan-type` is missing the actual type to alias. In phpdoc-parser 2.0 this is now represented as [`TypeAliasTagValueNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.PhpDoc.TypeAliasTagValueNode.html) (instead of `InvalidTagValueNode`) with [`InvalidTypeNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.Type.InvalidTypeNode.html) in place of the type.
90
90
91
-
## Removal of QuoteAwareConstExprStringNode
91
+
###Removal of QuoteAwareConstExprStringNode
92
92
93
93
The class [QuoteAwareConstExprStringNode](https://phpstan.github.io/phpdoc-parser/1.23.x/PHPStan.PhpDocParser.Ast.ConstExpr.QuoteAwareConstExprStringNode.html) has been removed.
94
94
95
95
Instead, [ConstExprStringNode](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.ConstExpr.ConstExprStringNode.html) gained information about the kind of quotes being used.
96
96
97
-
## Removed 2nd parameter of `ConstExprParser::parse()` (`$trimStrings`)
97
+
###Removed 2nd parameter of `ConstExprParser::parse()` (`$trimStrings`)
98
98
99
99
`ConstExprStringNode::$value` now contains unescaped values without surrounding `''` or `""` quotes.
100
100
101
101
Use `ConstExprStringNode::__toString()` or [`Printer`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Printer.Printer.html) to get the escaped value along with surrounding quotes.
102
102
103
-
## Text between tags always belongs to description
103
+
###Text between tags always belongs to description
104
104
105
105
Multi-line descriptions between tags were previously represented as separate [PhpDocTextNode](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.PhpDoc.PhpDocTextNode.html):
106
106
@@ -113,3 +113,7 @@ Multi-line descriptions between tags were previously represented as separate [Ph
113
113
```
114
114
115
115
The line with `some text in the middle` in phpdoc-parser 2.0 is now part of the description of the first `@param` tag.
116
+
117
+
### Minor BC breaks
118
+
119
+
* Constructor parameter `$isEquality` in `AssertTag*ValueNode` made required
0 commit comments