Drupal 11 requires minimum PHP8.4 and PHP8.5.
Please consider the module code and include any changes (if needed) to upgrade the code and roll into a new release for Drupal 11 ASAP please.

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

cebab54 created an issue. See original summary.

cebab54’s picture

Issue summary: View changes
Issue tags: -PHP8.3 +PHP8.5
cebab54’s picture

Title: PHP 8.3, 8.4 and 8.5 compatability » PHP 8.4 and 8.5 compatability

yusuf_khan made their first commit to this issue’s fork.

yusuf_khan’s picture

Status: Active » Needs review

@ cebab54 I've pushed a merge request (!4) with the following changes I've added ci file and for Drupal 11 / PHP 8.4+ compatibility:
PHP 8.4/8.5 compatibility:
- Added #[\Override] attribute to all overridden methods in Expiry.php
- Added proper type hints (string, mixed, AccessResultInterface) to function signatures
- Made providerGetCacheMaxAge() static (required by PHPUnit 10+)
- Updated core_version_requirement to include ^11
- Updated drupal/core requirement to include ^11
OOP hooks (Drupal 11):
- Created src/Hook/BlockSchedulerHooks.php with #[Hook('help')] and #[Hook('block_access')] implementations
- Added #[LegacyHook] on procedural functions in .module for backwards compatibility
Spelling fixes:
- Fixed upublish typo → unpublish in ExpiryTest.php
- Added .cspell.json for project-specific dictionary words
Ready for review.

cebab54’s picture

Thank you

liam morland’s picture

Version: 2.0.1 » 2.0.x-dev
Issue tags: -PHP8.4, -PHP8.5 +PHP 8.4
robloach’s picture

Assigned: Unassigned » robloach

Looking good. Adding a couple other fixes.

robloach’s picture

Status: Needs review » Reviewed & tested by the community
robloach’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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