When upgrading from Drupal 10.x to 11.2.x the following PHP fatal error occurs:
PHP Fatal error: Declaration of Drupal\bankid\Plugin\Validation\Constraint\BankIDProtectedUserFieldConstraintValidator::validate($items, Symfony\Component\Validator\Constraint $constraint) must be compatible with Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraintValidator::validate($items, Symfony\Component\Validator\Constraint $constraint): void in /var/www/html/web/modules/contrib/bankid/src/Plugin/Validation/Constraint/BankIDProtectedUserFieldConstraintValidator.php on line 47
Upgrade a site having BankID module installed from 10.x to 11.2.x.
Add the missing void
return type to BankIDProtectedUserFieldConstraintValidator::validate()
.
Alter the code.
None.
None.
None.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.