Skip to content

chore(deps): keep Dependabot off phpstan/phpstan 2.3.6+ until pest-plugin-type-coverage follows - #698

Merged
ogorzalka merged 1 commit into
developfrom
fix/phpstan-2.3.7
Nov 24, 2026
Merged

ogorzalka merged 1 commit into
developfrom
fix/phpstan-2.3.7

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

PHPStan 2.3.6 removed AnalyserResult::getCollectedData(), which pest-plugin-type-coverage 3.x still calls: with phpstan 2.3.7, pest --type-coverage fails with Call to undefined method PHPStan\Analyser\AnalyserResult::getCollectedData() (reproduced on develop; this is what fails in #667). The cap <2.3.6 in composer.json is therefore needed, and Dependabot proposes lifting it every week.

Measured: the fix exists only in the plugin 4.0.6+ (needs Pest 4) and 5.x. The framework is on Pest 3.8 (plugin 3.6.1 is the last 3.x). Pest 4.7 + plugin 4.0.6 installs and runs the type coverage, but reports 97.6 % where develop reports 99.1 % (minimum 98 %), so that migration is its own piece of work. Pest 3 with the plugin's 4-line fix applied by hand and phpstan 2.3.7 gives 99.1 %, same as today: the phpstan bump itself is harmless once the plugin follows.

This tells Dependabot to ignore phpstan/phpstan >=2.3.6, with the reason and when to lift it. #667 can be closed.

@ogorzalka
ogorzalka merged commit bad3f17 into develop Nov 24, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant