Downgrade (temporarily) nikic/php-parser to ^4

Created on 16 April 2024, 3 months ago
Updated 2 May 2024, 2 months ago

Problem/Motivation

In 📌 Remove DrupalComponentTestListenerTrait and replace with a PHPStan rule RTBC , we are trying to replace DrupalComponentTestListenerTrait with a PHPStan rule.

The testing of that rule via PHPUnit fails, though, given PHPStan uses a internally version 4 of nikic/php-parser. See details here: https://github.com/phpstan/phpstan/issues/10620

We have currently locked nikic/php-parser to v5.

However, there is no reason to strictly adhere to that constraint at the moment:

$ composer why nikic/php-parser 
phpunit/php-code-coverage 9.2.31 requires nikic/php-parser (^4.18 || ^5.0) 
sebastian/complexity      2.0.3  requires nikic/php-parser (^4.18 || ^5.0) 
sebastian/lines-of-code   1.0.4  requires nikic/php-parser (^4.18 || ^5.0) 

Not even under PHPUnit 10:

$ composer why nikic/php-parser 
phpunit/php-code-coverage 10.1.14 requires nikic/php-parser (^4.18 || ^5.0) 
sebastian/complexity      3.2.0   requires nikic/php-parser (^4.18 || ^5.0) 
sebastian/lines-of-code   2.0.2   requires nikic/php-parser (^4.18 || ^5.0) 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: won't fix

Version

11.0 🔥

Component
PHPUnit 

Last updated about 3 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024