Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Mar 2026 at 13:27 UTC
Updated:
27 Apr 2026 at 08:10 UTC
Jump to comment: Most recent
Comments
Comment #2
longwaveComment #5
borisson_I used phpstorm's find usage on these properties and they are not used according to that either. So this looks good to me, I also agree with scoping these issues like this.
Comment #6
catchI think we're missing:
from the issue summary.
Comment #7
smustgrave commentedcore/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php was originally added in #2355909 seems this variable was set but never used.
core/modules/migrate/tests/src/Unit/process/SubProcessTest.php was originally added in #2147811, this one was so old the ticket didn't have the commit message. But same deal variable was never used
core/modules/path_alias/tests/src/Unit/AliasManagerTest.php was originally added in #2233623 and just never used.
Same findings from #3581404: Remove unused properties from kernel tests these tests look like they haven't been touched much since added so fully believe it's dead code.
Comment #8
borisson_@smustgrave, the remarks on the mr are for other properties in the same file that also might not be used.
Comment #9
smustgrave commentedWould they have been picked up by the scan with the dead code library?
Comment #10
borisson_I'm not sure why they wouldn't have, no. I don't think we need to hunting for more changes in this issue.
Maybe we submit these as a bug report to shipmonk?
Comment #11
smustgrave commentedOh yea if we think it’s a bug 100% I imagine these dead code issues are about satisfying that checker only. Kinda like we do rector tickets
Comment #12
catchYes I think we should only handle variables picked up by shipmonk/dead-code-detector here, can open follow-ups for anything else.
Committed/pushed to main, thanks!