neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Allow using nullable type hints in annotations #13

Closed Gymnasiast closed 5 years ago

Gymnasiast commented 5 years ago

The following does not work:

    /**
     * @var \DateTime|null $fromDate
     */
    public $fromDate = null;

This does work:

    /**
     * @var \DateTime $fromDate
     */
    public $fromDate = null;