Signature of DevelGenerateBaseInterface::validateDrushParams() different in 8.x-2.1 and 4.0.0, causing fatal Declaration of ... must be compatible error.
Problem/Motivation
In version 4.0.0, the signature is DevelGenerateBaseInterface::validateDrushParams(array $args, array options = []), but in version 8.x-2.1, it is DevelGenerateBaseInterface::validateDrushParams(
args);
This means that modules which declare DevelGenerate plugins must be aware of the version of Devel being used, but there seems no mechanism to do so.
For example, this causes a fatal bug when posting forms with the webform module:
HP 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).
Proposed resolution
Return to previous DevelGenerateBaseInterface::validateDrushParams($args) signature in 4.x.x.