Reviewed & tested by the community
Project:
Drupal core
Version:
main
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2026 at 00:11 UTC
Updated:
12 Nov 2026 at 00:56 UTC
Jump to comment: Most recent
Comments
Comment #2
mstrelan commented#3577137: Upgrade to Coder 9 is in, setting to active.
Comment #4
mstrelan commentedComment #5
smustgrave commentedWould it cause issue if we dropped the entire @return void line and actually add void the the functions?
Comment #6
mstrelan commentedLet's do it.
Most of these are protected methods or test base classes. The only interface change is
NodeGrantDatabaseStorageInterface::alterQuery(), but nothing in contrib extends that. It would break tests in at least 14 contrib projects extendingResourceTestBase. I think a couple projects extendingDiffFormattertoo. I've added a CR for this.Comment #7
kim.pepperIs
BlockPluginCollection::addInstanceId()also considered a public API? I think we are safe to make this change.The rest looks straight forward to me.
Comment #8
longwaveI am not sure we should do ResourceTestBase here.
Following #3486376: Extend Symfony DebugClassLoader to report missing cross-module @return types docblock return types should be reported to downstream users in 12.0. This means these users should already get notified of the ResourceTestBase changes here, along with every other missing return type as well. See the change record at https://www.drupal.org/node/3579056
Therefore I think the other ones that are unlikely to be extended are fine to do here, but anything that breaks downstream can wait until Drupal 13 where, in theory, we should be able to add return types to all methods.
Comment #9
smustgrave commentedReverted ResourceTestBase.php
Comment #10
smustgrave commentedJK I messed things up.
Comment #11
mstrelan commentedNot sure it's worth doing without ResourceTestBase. Maybe we just revert back to original scope of removing the return descriptions for all of these?
Comment #12
smustgrave commentedOh man I sincerely apologize I messed this MR up this morning and meant to fix and got distracted. Can fix when I get back home
Comment #13
smustgrave commentedFixed my mistake.
Comment #14
mstrelan commentedUpdated proposed resolution and CR, pushed an updated MR.
Comment #15
smustgrave commentedGoing to mark. Sorry again for the disruption. Got busy with work and other stuff. That's on me.