phpstan / phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics
MIT License
1.36k stars 61 forks source link

Fix printing array shapes #171

Closed jrmajor closed 1 year ago

jrmajor commented 1 year ago

Fixes a bug reported in https://github.com/phpstan/phpdoc-parser/pull/169#discussion_r1050020908.

I've added tests for __toString() method on all nodes so that this doesn't happen again. Along the way, I've also discovered and fixed minor whitespace issues with printing callable parameters.

ondrejmirtes commented 1 year ago

Thank you!

samsonasik commented 1 year ago

Thank you @jrmajor