I taught @phpstan to auto-fix some #phpunit errors. it will help you when upgrading to fix warnings while running the test-suite:
- turns data-providers public/static.
- php-version format in #[RequiresPhp]
- missing calls to parent setUp/tearDown
- rewrite weak-typed asserts
requires the latest phpstan-phpunit extension and PHPStan 2.3.5+
see https://phpstan.org/user-guide/command-line-usage#--fix%2C---fix-ignored

phpstan.orgCommand Line Usage
commit 107f262