Fix phpunit test failures on Drupal 11.2

Created on 30 July 2025, 14 days ago

Problem/Motivation

Drupal 11.2 broke backwards-compatibility with phpstan.

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires drupal/core-dev 11.2.2 -> satisfiable by drupal/core-dev[11.2.2].
    - Root composer.json requires jangregor/phpstan-prophecy ^1 -> satisfiable by jangregor/phpstan-prophecy[1.0.0, 1.0.1, 1.0.2].
    - drupal/core-dev 11.2.2 requires phpstan/phpstan ^2.1.17 -> satisfiable by phpstan/phpstan[2.1.17, ..., 2.1.x-dev].
    - jangregor/phpstan-prophecy[1.0.0, ..., 1.0.2] require phpstan/phpstan ^1.0.0 -> satisfiable by phpstan/phpstan[1.0.0, ..., 1.12.x-dev].
    - You can only install one version of a package, so only one of these can be installed: phpstan/phpstan[1.0.0, ..., 1.12.x-dev, 2.0.0, ..., 2.1.x-dev].

Proposed resolution

Update development dependencies and fix any usages to work again.

Remaining tasks

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mradcliffe USA

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