Tweak type annotation to include null

This commit is contained in:
Nikita Popov 2019-01-12 17:28:53 +01:00
parent 6b9dd7afe7
commit 1f95f9215c
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,8 @@ Version 4.2.0-dev
### Added
* [PHP 7.4] Add support for typed properties through a new `type` subnode of `Stmt\Property`. (#567)
* [PHP 7.4] Add support for typed properties through a new `type` subnode of `Stmt\Property`.
Additionally `Builder\Property` now has a `setType()` method. (#567)
* Add `kind` attribute to `Cast\Double_`, which allows to distinguish between `(float)`,
`(double)` and `(real)`. The form of the cast will be preserved by the pretty printer. (#565)

View File

@ -17,9 +17,7 @@ class Property implements PhpParser\Builder
protected $default = null;
protected $attributes = [];
/**
* @var Identifier|Name|NullableType
*/
/** @var null|Identifier|Name|NullableType */
protected $type;
/**