Closed (duplicate)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2026 at 09:04 UTC
Updated:
25 May 2026 at 14:03 UTC
Jump to comment: Most recent
The Webform module uses deprecated APIs that cause warnings when running Upgrade Status or preparing for Drupal 11+ compatibility.
Class Drupal\webform\Commands\WebformSanitizeSubmissionsCommands implements deprecated interface
Drush\Drupal\Commands\sql\SanitizePluginInterface: use \Drush\Commands\sql\sanitize\SanitizePluginInterface instead.File modules/contrib/webform/webform.tokens.inc could not be loaded from Drupal\Core\Extension\ModuleHandlerInterface::loadInclude
Update Drush SanitizePluginInterface namespace:
use Drush\Drupal\Commands\sql\SanitizePluginInterface; to use Drush\Commands\sql\sanitize\SanitizePluginInterface;Fix loadInclude() calls:
'inc', and the third parameter should be the filename without extension 'webform.tokens'loadInclude('webform', 'tokens.inc') to loadInclude('webform', 'inc', 'webform.tokens')I am attaching a patch that addresses both issues and provides a workaround until this is fixed by the maintainers.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-deprecated.patch | 1.57 KB | titacvetkovic |
Comments
Comment #2
liam morlandThere is already a fix to
::loadInclude()in 6.3.x. For the other one, is there a change record for this? We need to make sure this doesn't cause a backward compatibility issue. Please put your changes into an issue fork and merge request.Comment #3
titacvetkovic commentedHi @liam
I see that the patch is now incorporated into 6.3.0-beta6. All three changes are now present in the files:
-
WebformSanitizeSubmissionsCommands.phpusesDrush\Commands\sql\sanitize\SanitizePluginInterface- The
loadInclude()calls use the updated signatureI believe the issue can be closed.
Best,
Tita
Comment #4
liam morlandThanks. These issues appear to have been addressed in #3565161: Fix issues raised by phpstan and #3477942: Fix phpstan errors. The last change was rolled-back in #3537579: Drush\Commands\sql\sanitize\SanitizePluginInterface not found.