PHPStan 2.1.35 has issue, pin PHPStan to 2.1.34 for now :)
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 742
Closed
Labels
Description
opened
on Jan 21, 2026This to avoid user keep creating known issue after run composer update and got phpstan 2.1.35
The new PHPStan 2.1.35 cause new issue seems due to change behaviour of PHPStan\Analyser\NodeScopeResolver, see related PRs and issue:
- 2.1.34 (working) : [test] Test pin PHPStan 2.1.34 (working) rector-downgrade-php#359
- 2.1.35 (not working): [test] Test bump PHPStan 2.1.35 (not working) rector-downgrade-php#360
- Bump to PHPStan ^2.1.35 rector-src#7847
- PHPStan 2.1.35 cause error on rector-downgrade-php phpstan/phpstan#13992
The failing test case already reported to phpstan :)
Temporary solution is pin rector/rector to 2.3.2 and phpstan/phpstan to 2.1.34 for now :)
"rector/rector": "2.3.2",
"phpstan/phpstan": "2.1.34",
Metadata
Metadata
Assignees
No one assigned
Labels
Type
No type
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions