Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a single minded issue.....
The application of @inheritdoc was a bit patchy.
Comment | File | Size | Author |
---|---|---|---|
selectExtender-1.patch | 9.06 KB | martin107 | |
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedDo we put @inheritdoc on things like the built-in
__clone()
method?Comment #3
jhodgdonI don't think we usually do, but in this case it is probably OK because the method is declared on SelectInterface for some reason.
This looks good to me, thanks!
Comment #4
martin107 CreditAttribution: martin107 commentedin this case __clone() is explicitly listed on the SelectInterface
Just to add a little context...
For me this is an issue split off from
#2344831: Document behavior of Drupal/Core/Database/Query/SelectInterface::__toString()
Where I wanted to add the conventional @inheritdoc tag to a another magic method.... __toString()
That issue got started as a DX issue ... I was having trouble locating a bug of my own making and things would have been much simpler if my IDE had drawn my attention to the missing __toString().
Comment #6
martin107 CreditAttribution: martin107 commentedlooking at fails in "installer test"
it looks like mysql was not present ...
this issue is a documentation only patch...
I think this is a testbot fail... I will retest in a few hours and see what gives.
Comment #7
martin107 CreditAttribution: martin107 commentedtriggering test.
Comment #8
martin107 CreditAttribution: martin107 commentedOn my local machine I don't see these fails.
As a double check
I used simplytest.me to create a 8.0.x sandbox with the patch applied.
I picked two of the failing tests more or less at random
Installer Test
SingleVisibleProfileTest
both tests passed.
I am not sure why our test infrastructure is the odd one out ...hmm
Any suggestions welcome.
Comment #9
jhodgdonYeah this is a docs patch. Test fails that are valid are only "the patch doesn't apply". It was a test bot problem. Back to RTBC.
Comment #10
xjmAlso more cowbell!
I reviewed all these methods and confirmed they're all implementations of something-or-other and can therefore @inheritoc. Committed and pushed to 8.0.x. Thanks!