webimpress / coding-standard

Webimpress Coding Standard for PHP_CodeSniffer
BSD 2-Clause "Simplified" License
13 stars 7 forks source link

fix: Formatting\ReturnTypeSniff to use new type of token for parenthesis #204

Closed michalbundyra closed 1 month ago

michalbundyra commented 1 month ago

Since PHP_CodeSniffer 3.10.0 parenthesis token has been changed to:

and therefore the sniff did not work correctly for composite return type declarations.

Bump minimum PHP_CodeSniffer version to 3.10.3 so the new tokens are defined.