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.
Updated: Comment #0
Problem/Motivation
\Drupal\search\Form\SearchSettingsForm contains a "use" statement for \Drupal\Core\Extension\ModuleHandler but that class is not used. Because it is (incorrectly) type-hinted as a member variable PhpStorm does not report it as unused.
Proposed resolution
Fix the type-hint and remove the "use" statement.
Remaining tasks
Review & commit the patch.
Related Issues
- This was introduced in #2003482: Convert hook_search_info to plugin system recently.
Comment | File | Size | Author |
---|---|---|---|
#1 | search-settings-form-unused-module-handler.patch | 974 bytes | tstoeckler |
Comments
Comment #1
tstoecklerHere we go.
Comment #2
BerdirLooks good to me.
Comment #3
webchickNice catch, thanks!
Committed and pushed to 8.x.