spadgos / sublime-jsdocs

Simplifies writing DocBlock comments in Javascript, PHP, CoffeeScript, Actionscript, C & C++
MIT License
3.11k stars 276 forks source link

php7,unsupported variable type array with default value #461

Open itchin opened 6 years ago

itchin commented 6 years ago

qq 20180723113958 Traceback (most recent call last): File "D:\Program Files\Sublime Text-3176\sublimeplugin.py", line 1072, in run return self.run(edit) File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 163, in run File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 358, in parse File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 426, in formatFunction File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 501, in parseArgs File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 509, in getArgInfo File "D:\Program Files\Sublime Text-3176\Data\Installed Packages\DocBlockr.sublime-package\jsdocs.py", line 798, in getArgType TypeError: Can't convert 'NoneType' object to str implicitly

itchin commented 6 years ago

Only when default value use the short array syntax, which replaces array() with []