Problem/Motivation
This is blocker to upgrade composer for 10.4.x #3478331: Upgrade composer to 2.8.1 for PHP 8.4
Steps to reproduce
$ composer update composer/composer:2.8.0 -W
> Drupal\Composer\Composer::ensureComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires composer/composer ^2.7.7 -> satisfiable by composer/composer[2.8.0].
- composer/composer 2.8.0 requires composer/pcre ^2.2 || ^3.2 -> satisfiable by composer/pcre[2.2.0, 2.3.0, 2.3.1, 2.x-dev, 3.2.0, 3.3.0, 3.3.1, 3.x-dev].
- composer/pcre[2.3.0, ..., 2.x-dev, 3.3.0, ..., 3.x-dev] conflict with phpstan/phpstan <1.11.10.
- composer/pcre[2.2.0, 3.2.0] conflict with phpstan/phpstan <1.11.8.
- phpstan/phpstan is locked to version 1.11.0 and an update of this package was not requested.
Proposed resolution
Upgrade phpstan/phpstan to 1.11.10 as 11.x branch is using
Remaining tasks
get rid of failures, review, commit
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3478504
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:
- 3478504-upgrade-phpstan-1-11
changes, plain diff MR !9747
Comments
Comment #3
andypostcomposer update phpstan/phpstan:1.11.10changes
Comment #4
andypostUpgrade for 11.x been done in #3463954: Bump phpstan/phpstan to latest to make daily "updated deps" QA run pass again
Comment #5
smustgrave commentedSo looking at #3463954: Bump phpstan/phpstan to latest to make daily "updated deps" QA run pass again I see we upgrade to 1.11.8 for 11.x. If going to 1.11.10 for 10.4 think we should make sure 11.x and 10.4.x are inline.
Comment #6
andypost11.x already using it, I pointed it summary) but the issue fixes preg usage to prevent extending baseline so I just backported fixes from the commit and extended fix for book module which is absent in 11
Comment #7
andypostSee https://git.drupalcode.org/project/drupal/-/blob/11.x/composer.json?ref_...
Comment #8
andypostNow
composer.jsonis the same forphpstan/phpstanProbably some follow-up to align versions with 11.x could be requested by commiter as the diff not as big
Comment #9
smustgrave commentedAhh wrong issue was linked #3467098: Bump phpstan/phpstan and mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again
This makes it inline then.
Comment #10
andypostrebased and aligned
mglaman/phpstan-drupalto 1.2.11 as 11.x after #3467098: Bump phpstan/phpstan and mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass againComment #12
longwaveCommitted 8e8e0f4 and pushed to 10.4.x. Thanks!