Problem/Motivation
While working on another issue, I found out 4.x was failing by itself.
Steps to reproduce
Run phpunit test suit on 4.x.
Proposed resolution
PHPStan 2.x changed behavior — with customRulesetUsed: true and no level specified, PHPStan's RestrictedClassNameUsageExtension mechanism (which handles class.extendsDeprecatedClass) is not activated. The old phpstan-deprecation-rules 1.x had standalone rule classes that ran unconditionally; 2.x switched to the extension mechanism which requires a level to be set.
Adding level: 0 makes PHPStan activate the restricted usage checks, restoring detection of deprecated class extensions.
I'll report back when the tests finish.
Remaining tasks
User interface changes
API changes
Data model changes
AI disclosure
AI was used to debug, fix and verify this issue.
Issue fork upgrade_status-3574741
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
Comment #5
gábor hojtsyOur tests proved that that was the right fix :) Added a no-neon-change branch to prove that without the fix the current 4.x fails on the current major. (Both pass on previous major).