rectorphp / rector

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
https://getrector.com
MIT License
8.72k stars 687 forks source link

invalid phpdoc should not be changed #2991

Closed C0pyR1ght closed 4 years ago

C0pyR1ght commented 4 years ago

rector changes invalid phpdoc annotations instead of leaving them as they are.

This behavior seems to occur on serveral / all rectors.

expected: @return multitype:number should remain the same

    /**
    * count artfarbenids in aset of articles (used in basket and stock)
    *
    * @param unknown $array
    * @return multitype:number
    */

see: https://getrector.org/demo/ebb0f613-a6df-4231-9aa2-a43dc22aeea4

TomasVotruba commented 4 years ago

Fixed