Steps to reproduce:

  1. Go to a node and on `claim` tab, without filling anything, submit it for claim.
  2. Go to administrator interface from where you can accept/decline the claim.
  3. If you approve the claim, everything works fine. But when you `Decline` the claim, it gives a fatal error.

Here is the error message:

Fatal error: Declaration of Drupal\nodeownership\Form\NodeownershipClaimDeclineForm::submitForm(array &$form, Drupal\nodeownership\Form\FormStateInterface $form_state) must be compatible with Drupal\Core\Form\FormInterface::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) in [DRUPALROOT]/modules/nodeownership/src/Form/NodeownershipClaimDeclineForm.php on line 13

Thanks!!
~Amit

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vyasamit2007 created an issue. See original summary.

vyasamit2007’s picture

Issue summary: View changes
bkhandruk’s picture

Assigned: Unassigned » bkhandruk
bkhandruk’s picture

Assigned: bkhandruk » Unassigned
Status: Active » Needs review
FileSize
1.31 KB

Changed name of decline ownership claim class in order to comply with PSR-4 standards.

vyasamit2007’s picture

Status: Needs review » Fixed

The patch doesn't follow the structure of the module, but the issue will be fixed.

This will be part of the next release.

Thanks!

vyasamit2007’s picture

Status: Fixed » Closed (fixed)