mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-02 09:27:58 +01:00
Tweak type annotation to include null
This commit is contained in:
parent
6b9dd7afe7
commit
1f95f9215c
@ -3,7 +3,8 @@ Version 4.2.0-dev
|
|||||||
|
|
||||||
### Added
|
### 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)`,
|
* 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)
|
`(double)` and `(real)`. The form of the cast will be preserved by the pretty printer. (#565)
|
||||||
|
|
||||||
|
@ -17,9 +17,7 @@ class Property implements PhpParser\Builder
|
|||||||
protected $default = null;
|
protected $default = null;
|
||||||
protected $attributes = [];
|
protected $attributes = [];
|
||||||
|
|
||||||
/**
|
/** @var null|Identifier|Name|NullableType */
|
||||||
* @var Identifier|Name|NullableType
|
|
||||||
*/
|
|
||||||
protected $type;
|
protected $type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user