phpstan-phpunit
phpstan-phpunit copied to clipboard
Warn when data provider provides more args than the method accepts
Allegedly PHPUnit 12 warns about this.
At the same time, PHPUnit 12.4 adds validateArgumentCount parameter to DataProvider attribute that opts out of this error.
/cc @staabm
related PHPUnit issue: https://github.com/sebastianbergmann/phpunit/issues/6277