PHP 8.4 Implicitly marking parameter $season as nullable is deprecated

Created on 6 February 2025, 2 months ago

We're using office_hours in the LocalGov Drupal distribution and we've started testing against PHP 8.4.

I've got this error on our PHP Unit Tests.

1) Drupal\Tests\localgov_paragraphs\Functional\ContactEditTest::testContactPageComponentEditPage
Exception: Deprecated function: Drupal\office_hours\Plugin\Field\FieldWidget\OfficeHoursWidgetBase::setSeason(): Implicitly marking parameter $season as nullable is deprecated, the explicit nullable type must be used instead
include()() (Line: 576)

See:

https://github.com/localgovdrupal/localgov_paragraphs/actions/runs/13176...

Just logging this here for now for visibility, as I'm not yet sure how to fix it. Any thoughts?

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Finn Lewis

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