File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ Version 4.2.0-dev
3
3
4
4
### Added
5
5
6
- * [ PHP 7.4] Add support for typed properties through a new ` type ` subnode of ` Stmt\Property ` . (#567 )
6
+ * [ PHP 7.4] Add support for typed properties through a new ` type ` subnode of ` Stmt\Property ` .
7
+ Additionally ` Builder\Property ` now has a ` setType() ` method. (#567 )
7
8
* Add ` kind ` attribute to ` Cast\Double_ ` , which allows to distinguish between ` (float) ` ,
8
9
` (double) ` and ` (real) ` . The form of the cast will be preserved by the pretty printer. (#565 )
9
10
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ class Property implements PhpParser\Builder
17
17
protected $ default = null ;
18
18
protected $ attributes = [];
19
19
20
- /**
21
- * @var Identifier|Name|NullableType
22
- */
20
+ /** @var null|Identifier|Name|NullableType */
23
21
protected $ type ;
24
22
25
23
/**
You can’t perform that action at this time.
0 commit comments