Problem/Motivation
As discovered by @xjm in #3327853-34: [10.0.x and 9.5.x backports] Don't allow {@inheritDoc} annotation in PHPDocBlocks there are a few occurrences of @inheritdoc around (Note the missing curly braces).
Since we already have Slevomat rules to check for the unwanted {@inheritDoc} and @inheritDoc, let's add another one to check for @inheritdoc.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3331633-12-9.5.x.patch | 1.3 KB | longwave |
| #6 | 3331633.10.1.x-3.patch | 1.73 KB | spokje |
| #6 | 3331633.10.0.x-3.patch | 1.37 KB | spokje |
| #5 | 3331633-test-only.patch | 369 bytes | spokje |
| #3 | 3331633.10.0.x-3.patch | 1.37 KB | spokje |
Comments
Comment #2
spokjeComment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
spokjeRe-uploading the original, unchanged patches from #3 to make sure that if we reach RTBC with this one, the bi-daily retesting doesn't fail on the (correctly) failing test-only patch.
Comment #7
smustgrave commentedThanks!
Comment #9
catchCommitted/pushed to 10.1.x, thanks!
Comment #11
longwaveReopening this for backport, as the 10.0.x and 9.5.x updated deps jobs are failing:
Comment #12
longwaveSent #6 for another run on 10.0.x, here's a 9.5.x patch.
Comment #13
spokjeLooks like the original patch was only committed to 10.1.x.
Also Coder now seems to check for it in the latest release, which is the reason tests now fails on updated deps runs on 9.5.x and 10.0.x.
We also get the "interesting" situation that 10.1.x does the checks using a Slevomat rule, whilst the checks in 9/10 are done through a coder sniff.
Comment #14
longwave@Spokje I guess once we update deps in 10.1.x it will be done by both rules? So it doesn't really matter that much I think, we could clean up one but there are far more important things to work on.
Comment #15
spokje@longwave That should work (probably), and agreed there's much more important work to do.
Just wanted to mention it (and think that test-only changes should always be backported, but that's a different issue)
Comment #16
spokjeAh, forgot the most important part of my previous comments: RTBC
Comment #18
catchWhoops didn't realise this needed backporting. Committed/pushed the 10.0.x and 9.5.x patches, thanks!