Problem/Motivation
With Drupal 8.9.16, the Widget Engine module in version 1.3 raises a fatal error because the method signature of isPublished() does not conform to the expected one.
Fatal error: Declaration of Drupal\widget_engine\Entity\Widget::setPublished($published) must be compatible with Drupal\Core\Entity\EditorialContentEntityBase::setPublished($published = NULL) in /var/www/html/docroot/modules/contrib/widget_engine/src/Entity/Widget.php on line 72
Steps to reproduce
Install Widget Engine in version 1.3 with Drupal 8.9.16.
Proposed resolution
It is necessary to adapt the method signature so that it can be compatible with the one described in EditorialContentEntityBase::setPublished.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3221502.patch | 852 bytes | rowen92 |
Issue fork widget_engine-3221502
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tidoI have the impression that the method signature problem has been solved in patch #16 of this issue:
https://www.drupal.org/project/widget_engine/issues/3071378.
Is it planned to be merged soon? Either patch #16 or #17. From what I see it doesn't pass validation tests on Drupal 8.9.x
Comment #3
shumer commentedComment #5
shumer commentedComment #7
rowen92 commentedLet's have a separate patch that can resolve this issue unless it's fixed there #3071378.