Problem/Motivation
Deprecated: Drupal\date_augmenter\DateAugmenter\DateAugmenterInterface::augmentOutput(): Implicitly marking parameter $end as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/date_augmenter/src/DateAugmenter/DateAugmenterInterface.php on line 55
Steps to reproduce
Seen with PHP 8.4.14 :
Proposed resolution
I will create an issue fork
date_augmenter-php84-nullable.patch
diff -uNr patchsrc/date_augmenter/src/DateAugmenter/DateAugmenterInterface.php web/modules/contrib/date_augmenter/src/DateAugmenter/DateAugmenterInterface.php
--- patchsrc/date_augmenter/src/DateAugmenter/DateAugmenterInterface.php 2025-06-20 08:45:44.000000000 -0400
+++ web/modules/contrib/date_augmenter/src/DateAugmenter/DateAugmenterInterface.php 2026-02-17 16:54:02.882029001 -0500
@@ -52,6 +52,6 @@
* @return array
* Returns a render array for the output of the task;
*/
- public function augmentOutput(array &$output, DrupalDateTime $start, DrupalDateTime $end = NULL, array $options = []);
+ public function augmentOutput(array &$output, DrupalDateTime $start, ?DrupalDateTime $end = NULL, array $options = []);
}
diff -uNr patchsrc/date_augmenter/src/Plugin/DateAugmenterBase.php web/modules/contrib/date_augmenter/src/Plugin/DateAugmenterBase.php
--- patchsrc/date_augmenter/src/Plugin/DateAugmenterBase.php 2025-06-20 08:45:44.000000000 -0400
+++ web/modules/contrib/date_augmenter/src/Plugin/DateAugmenterBase.php 2026-02-17 16:55:13.402812006 -0500
@@ -83,6 +83,6 @@
* @param array $options
* An array of options to further guide output.
*/
- abstract public function augmentOutput(array &$output, DrupalDateTime $start, DrupalDateTime $end = NULL, array $options = []);
+ abstract public function augmentOutput(array &$output, DrupalDateTime $start, ?DrupalDateTime $end = NULL, array $options = []);
}
diff -uNr patchsrc/date_augmenter/src/Plugin/DateAugmenterInterface.php web/modules/contrib/date_augmenter/src/Plugin/DateAugmenterInterface.php
--- patchsrc/date_augmenter/src/Plugin/DateAugmenterInterface.php 2025-06-20 08:45:44.000000000 -0400
+++ web/modules/contrib/date_augmenter/src/Plugin/DateAugmenterInterface.php 2026-02-17 16:54:31.296250001 -0500
@@ -25,6 +25,6 @@
* @return array
* Returns a render array for the output of the task;
*/
- public function augmentOutput(array &$output, DrupalDateTime $start, DrupalDateTime $end = NULL, array $options = []);
+ public function augmentOutput(array &$output, DrupalDateTime $start, ?DrupalDateTime $end = NULL, array $options = []);
}
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #3
sgroundwater commentedI created an issue fork, but an attaching a patch file for composer patching.
Comment #4
sgroundwater commentedComment #5
tobiasbComment #6
tobiasbPatches for modules or whatever needs to be made with the root of the component not from your project root.
Or just download the diff from GitLab. What I did.
Comment #7
tobiasb