Open DaveLiddament opened 3 weeks ago
@DaveLiddament I guess it shoud be @return
?
@DaveLiddament I guess it shoud be
@return
?
Good spot. Updated. Thanks
We had such a rule before but it was opinionated how complex array shapes should be included or skipped.
Proof of concept would be great 👍
Feature Request
I would like a Rector to add the correct return type docblock to a PHPUnit data provider method, based on the signature of the test method that references the data provider.
Rector would look for methods with the
#[DataProvicder]
attribute, it could then annotate the referenced data provider method, if it isn't already annotated, with relevant docblock,E.g Before
Rector can work out from the testAdd parameters that the data provider should be:
/** @return array<array-key,array<int,int,int>> */
Diff