Steps to reproduce this error:
1.Create a new voting api field
2.Set Usefull Widget
3.Go to Manage Display
This error appears
Fatal error: Declaration of Drupal\votingapi_widgets\Plugin\votingapi_widget\UsefulWidget::buildForm($entity_type, $entity_bundle, $entity_id, $vote_type, $field_name, $style, $show_results, $read_only = false, $show_own_vote = false) must be compatible with Drupal\votingapi_widgets\Plugin\VotingApiWidgetInterface::buildForm($entity_type, $entity_bundle, $entity_id, $vote_type, $field_name, $settings) in /var/www/html/web/modules/contrib/votingapi_widgets/src/Plugin/votingapi_widget/UsefulWidget.php on line 20
Comments
Comment #2
nkoporecCreated a patch which fixes this error.
Comment #3
useernamee commentedI have tested the patch and it fixes fatal error.
Comment #5
Merlin Tribukait