Problem/Motivation
This function is dead code since around 2013, it seems to be a hook_menu() callback. Postponed on #3571067: [12.x] Remove hook_hook_info and support in HookCollectorPass, once that lands we can remove the whole file.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3572687
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3572687-remove-moduletestload-and
changes, plain diff MR !14994
Comments
Comment #2
nicxvan commentedComment #3
berdirNovice instructions: Create a MR that removes the module_test.module file.
Comment #6
karthik_gundu commentedCreated merge request removing module_test.module as suggested in the novice instructions.
MR: https://git.drupalcode.org/project/drupal/-/merge_requests/14994
Comment #7
scontzen commentedComment #8
scontzen commentedThanks @karthik_gundu for working on this!
The file removal is correct.
However, the pipeline fails because the PHPStan baseline still references the deleted file:
Invalid entry in ignoreErrors:
Path "/builds/core/modules/system/tests/modules/module_test/module_test.module" is neither a directory, nor a file path, nor a fnmatch pattern.The corresponding entry in core/.phpstan-baseline.php (lines 28716-28721) also needs to be removed:
Setting to Needs work for the missing baseline cleanup.
Comment #10
thirteenthdown commentedI checked out the existing MR branch and removed the orphaned PHPStan baseline entry from core/.phpstan-baseline.php that was causing the pipeline to fail at the static analysis stage. The MR should now be green and the dead code removal is complete. Changing the status to Needs Review.
Comment #11
berdirMR is green, this looks good now.
Comment #13
catchCommitted/pushed to main, thanks!