Problem/Motivation

Module can't be installed on a project with PHP 8.1. The only limitation seems to be restriction in composer.json.

Steps to reproduce

1. Require / Update module on PHP 8.1.
2. See the problem

  Problem 1
    - drupal/cookie_content_blocker is locked to version 1.7.0 and an update of this package was not requested.
    - drupal/cookie_content_blocker 1.7.0 requires php ^7.1 -> your php version (8.1.2) does not satisfy that requirement.

Proposed resolution

Add PHP 8 as supported version.

Remaining tasks

Write a patch

CommentFileSizeAuthor
#2 php8-3263071-2.patch277 bytesanneke_vde
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

anneke_vde created an issue. See original summary.

anneke_vde’s picture

Status: Active » Needs review
StatusFileSize
new277 bytes

I added PHP 8 to the composer.json so de module can be installed on PHP 8.

idebr’s picture

Title: Module can't be installed on PHP 8 » Allow module to be installed on PHP8
Category: Feature request » Task
Status: Needs review » Reviewed & tested by the community

Patch works as expected.

reszli’s picture

I think we need this committed in order to actually test it, put the patch looks fine

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

kevinvb’s picture

The patch works could a new version be published so this module could be installed on PHP8.0 and above?
At this moment the --ignore -platform-reqs option is needed to be able to install the module.

  • Steven Buteneers committed 7a974fe on 8.x-1.x
    Issue #3263071 by anneke_vde, DuttonMa: Allow module to be installed on...
steven buteneers’s picture

Status: Reviewed & tested by the community » Fixed

committed, thanks!

Status: Fixed » Closed (fixed)

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