- Status changed to Needs review
about 1 year ago 7:48am 5 October 2023 - last update
about 1 year ago 30,379 pass - 🇳🇿New Zealand quietone
This was discussed in Slack by catch, larowlan, dww, bbrala, smustgrave and longwave. The consensus was that it is better to get this trival fix instead of waiting for the sniff. Also, as longwave pointed out that eventually all methods will have a return type so this will not be needed anyway.
To that end I chose to reroll the patch, yes staying with the patch workflow. Then I searched for for others instances and fixed those. Also, fixed any new errors caught php phpcs.
- Status changed to Needs work
about 1 year ago 1:50pm 5 October 2023 - 🇺🇸United States smustgrave
Searching for @returns and found a few more
believe the assets ones could be ignored.
- Status changed to Needs review
about 1 year ago 10:09pm 5 October 2023 - last update
about 1 year ago 30,377 pass - 🇺🇸United States tr Cascadia
@smustgrave: All but one of those "few more" are in .js files. JSDoc is different than PHPDoc (JSDoc allows use of @returns, among a lot of other things that are not allowed in PHPDoc) and JavaScript code is not included in the Drupal API documentation at api.drupal.org, which is what this issue was opened to fix.
The only one missed by the patch is in #24 is core/modules/jsonapi/tests/src/Kernel/ResourceType/ResourceTypeRepositoryTest.php
Here is a new patch that fixes that as well.
- 🇮🇳India mrinalini9 New Delhi
Hi,
I have reviewed patch #26, looks good to me.
It applied cleanly and replaced all the occurrences of@returns
with@return
at all places except the .js files in the core.
So, for me, it is RTBC.Thanks & Regards,
Mrinalini - Status changed to RTBC
about 1 year ago 5:25pm 6 October 2023 - last update
about 1 year ago 30,382 pass - Status changed to Fixed
about 1 year ago 10:27am 8 October 2023 -
alexpott →
committed c3ff5768 on 11.x
Issue #2916306 by TR, quietone, pfrenssen: Use "@return" instead of "@...
-
alexpott →
committed c3ff5768 on 11.x
- Status changed to Needs review
about 1 year ago 6:30pm 8 October 2023 - last update
about 1 year ago Patch Failed to Apply - 🇺🇸United States tr Cascadia
One hunk of the patch in #26 does not apply in Drupal 10.1.x because a usage of @returns that was recently introduced only into 11.x by ✨ Make field selection less overwhelming by introducing groups Fixed . That code does not exist in 10.1.x, and therefore that hunk does not apply to 10.1.x.
Here is a version of #26 that applies in 10.1.x.
- last update
about 1 year ago 29,653 pass - Status changed to RTBC
about 1 year ago 2:48pm 9 October 2023 - last update
about 1 year ago Patch Failed to Apply - Status changed to Fixed
about 1 year ago 8:12am 12 October 2023 -
alexpott →
committed 7cbdf08f on 10.1.x
Issue #2916306 by TR, quietone, pfrenssen: Use "@return" instead of "@...
-
alexpott →
committed 7cbdf08f on 10.1.x
- 🇬🇧United Kingdom longwave UK
I realised that we previously banned
@inheritDoc
with a rule in phpcs.xml.dist; we can do the same for@returns
: 📌 Prevent @returns from creeping back into the codebase Active Automatically closed - issue fixed for 2 weeks with no activity.