Problem/Motivation
After D9 upgrade, when running any drush command, I get
"PHP Fatal error: Declaration of Drupal\simple_sitemap\Entity\SimpleSitemap::purgeContent($variants = NULL, ?bool $status = self::FETCH_BY_STATUS_ALL) must be compatible with Drupal\simple_sitemap\Entity\SimpleSitemapInterface::purgeContent(?array $variants = NULL, ?bool $status = Drupal\simple_sitemap\Entity\SimpleSitemap::FETCH_BY_STATUS_ALL) in /simple_sitemap/src/Entity/SimpleSitemap.php on line 58"
Steps to reproduce
Updated site to Drupal 9.2.7 and Simple XML sitemap 4.0.0-rc1. Try to run any drush command.
Proposed resolution
Fix code syntax errors.
Remaining tasks
Review and Test patch
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | php_fatal_error_simple_sitemap-3247216.patch | 1.65 KB | sgalindo2388 |
Comments
Comment #2
sgalindo2388 CreditAttribution: sgalindo2388 commentedComment #4
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedThanks!
BTW: Please always open up bug reports against the dev version of the module.