Fix implicit nullables for PHP 8.4

Created on 13 January 2025, 7 days ago

Problem/Motivation

Currently the module has 3 deprecations on PHP 8.4, they are simple fixes.

Deprecated: Drupal\xmlsitemap\XmlSitemapStorage::__construct(): Implicitly marking parameter $memory_cache as nullable is deprecated, the explicit nullable type must be used instead in /data/app/modules/contrib/xmlsitemap/src/XmlSitemapStorage.php on line 43

Deprecated: Drupal\xmlsitemap\XmlSitemapStorage::doLoadMultiple(): Implicitly marking parameter $ids as nullable is deprecated, the explicit nullable type must be used instead in /data/app/modules/contrib/xmlsitemap/src/XmlSitemapStorage.php on line 78

Deprecated: Drupal\xmlsitemap\Entity\XmlSitemap::loadByContext(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in /data/app/modules/contrib/xmlsitemap/src/Entity/XmlSitemap.php on line 200

Deprecated: Drupal\xmlsitemap\XmlSitemapInterface::loadByContext(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in /data/app/modules/contrib/xmlsitemap/src/XmlSitemapInterface.php on line 147

Steps to reproduce

Run the module on PHP 8.4

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia acbramley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024