TAG ARCHIVE
Everything on phpstan.
3 articles tagged phpstan, sorted newest first.
phpstan
Adopt a PHPStan Baseline on a Legacy Laravel App (and Burn It Down)
A first PHPStan run on an old Laravel app reports thousands of errors. Here's how to baseline that debt, hold new code to the full ruleset, and reduce it deliberately.
7 min read →
pest
PestStan — Type-Safe Pest 4 Tests With PHPStan Generics in a Laravel App
PestStan teaches PHPStan about Pest's globals — generic expect() types, proper $this binding, and rules that catch broken assertions before the test even runs.
9 min read →
laravel
PHPStan Level 10 in Laravel: Fix the 5 Most Common Errors
Bumped Larastan to level 10 and got 300 new errors? Here are the five patterns you'll see again and again: and the exact fix for each.
6 min read →