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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgalindo2388 created an issue. See original summary.

sgalindo2388’s picture

  • gbyte committed 072eed4 on 4.x
    Issue #3247216 by sgalindo2388, gbyte: PHP Fatal error:  Declaration of...
gbyte’s picture

Version: 4.0.0-rc1 » 4.x-dev
Priority: Major » Normal
Status: Active » Fixed

Thanks!

BTW: Please always open up bug reports against the dev version of the module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.