[Drupal 9.x] Declaration of Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate::validateDrushParams($args) must be compatible with Drupal\devel_generate\DevelGenerateBaseInterface::validateDrushParams(array $args, array $options = Array)

Created on 29 June 2020, over 4 years ago
Updated 22 April 2024, 10 months ago

Because of [issue 324: Signature of DevelGenerateBaseInterface::validateDrushParams() different in 8.x-2.1 and 4.0.0, causing fatal Declaration of ... must be compatible error., if you use webform 8.x-5.x-dev with Devel's devel_generate module version 4.0.0, you get:

Fatal error: Declaration of Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate::validateDrushParams($args) must be compatible with Drupal\devel_generate\DevelGenerateBaseInterface::validateDrushParams(array $args, array $options = Array).

when submitting a form which has an email handler.

This is mitigated by the fact that it is not a good idea to enable devel_generate on production, so this probably won't happen in production, but on dev/stage servers with devel_generate enabled, it will cause fatal errors.

I cannot think of a workaround; perhaps it is best to remove Drupal\webform\Plugin\DevelGenerate\WebformSubmissionDevelGenerate entirely until devel issue 324 is fixed?

Setting to major because this might cause webforms to not work on critical environments if devel_generate is enabled.

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada alberto56

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024