jeremyvii / vs-docblockr

DocBlockr for Visual Studio Code
GNU Lesser General Public License v3.0
21 stars 8 forks source link

Does not return two types of data #76

Open dmitrach opened 4 years ago

dmitrach commented 4 years ago

Describe the bug Does not return two types of data.

Example:

?bool => bool

There should be the following:

?bool => bool|null

Code

protected function checkPricingRule(PricingRule $pricingRule): ?bool
{}

Screenshots Снимок экрана от 2020-06-04 17-54-14

Enviroment (please complete the following information):

OS: Ubuntu 20.04
VS Code: 1.45.1, the extension: 1.1.2
Language: PHP
rteano commented 3 years ago

this is also the same with typescript, it does not recognize multiple types