Problem/Motivation
In #3253472: Support advanced PHPStan data types (general, arrays) we relaxed data type requirements for @param and @return data types.
However it is still failing
Steps to reproduce
https://www.drupal.org/pift-ci-job/2730350, #3364706: Refactor transactions
91 | ERROR | [x] Expected "array<stringStackItemType>" but found
| | "array<string,StackItemType>" for function return
| | type
| | (Drupal.Commenting.FunctionComment.InvalidReturn)
Comments
Comment #2
alex.skrypnykI'm experiencing the same on this simple example
When spaces removed, I'm getting another error:
Comment #3
kingdutchI'm unable to reproduce this against the latest version of PHPCS.
Comment #4
klausiClosing as outdated.