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

Command icon 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

sgroundwater created an issue. See original summary.

sgroundwater’s picture

StatusFileSize
new2.12 KB

I created an issue fork, but an attaching a patch file for composer patching.

sgroundwater’s picture

Status: Active » Needs review
tobiasb’s picture

Issue summary: View changes
tobiasb’s picture

Version: 1.1.2 » 1.1.x-dev
StatusFileSize
new2.09 KB

Patches 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.

tobiasb’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community