diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 14585974..631ac940 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -19,7 +19,7 @@ parameters: path: src/Options.php - - message: '#^Parameter \#7 \$phpunitOptions of class ParaTest\\Options constructor expects array\\|non\-empty\-string\|true\>, array\<''bootstrap''\|''cache\-directory''\|''configuration''\|''coverage\-filter''\|''disallow\-test\-output''\|''dont\-report\-useless…''\|''exclude\-group''\|''fail\-on\-incomplete''\|''fail\-on\-risky''\|''fail\-on\-skipped''\|''fail\-on\-warning''\|''filter''\|''group''\|''no\-configuration''\|''order\-by''\|''process\-isolation''\|''random\-order\-seed''\|''stop\-on\-defect''\|''stop\-on\-error''\|''stop\-on\-incomplete''\|''stop\-on\-risky''\|''stop\-on\-skipped''\|''stop\-on\-warning''\|''strict\-coverage''\|''strict\-global\-state'', non\-empty\-array\|float\|int\\|int\<1, max\>\|non\-falsy\-string\|true\> given\.$#' + message: '#^Parameter \#7 \$phpunitOptions of class ParaTest\\Options constructor expects array\\|non\-empty\-string\|true\>, array\<''bootstrap''\|''cache\-directory''\|''configuration''\|''coverage\-filter''\|''disallow\-test\-output''\|''dont\-report\-useless…''\|''exclude\-group''\|''fail\-on\-deprecation''\|''fail\-on\-incomplete''\|''fail\-on\-risky''\|''fail\-on\-skipped''\|''fail\-on\-warning''\|''filter''\|''group''\|''no\-configuration''\|''order\-by''\|''process\-isolation''\|''random\-order\-seed''\|''stop\-on\-defect''\|''stop\-on\-error''\|''stop\-on\-incomplete''\|''stop\-on\-risky''\|''stop\-on\-skipped''\|''stop\-on\-warning''\|''strict\-coverage''\|''strict\-global\-state'', non\-empty\-array\|float\|int\\|int\<1, max\>\|non\-falsy\-string\|true\> given\.$#' identifier: argument.type count: 1 path: src/Options.php diff --git a/src/Options.php b/src/Options.php index 0347fe37..f68dca72 100644 --- a/src/Options.php +++ b/src/Options.php @@ -60,6 +60,7 @@ final class Options 'fail-on-risky' => true, 'fail-on-skipped' => true, 'fail-on-warning' => true, + 'fail-on-deprecation' => true, 'filter' => true, 'group' => true, 'no-configuration' => true, @@ -424,6 +425,12 @@ public static function setInputDefinition(InputDefinition $inputDefinition): voi InputOption::VALUE_NONE, '@see PHPUnit guide, chapter: ' . $chapter, ), + new InputOption( + 'fail-on-deprecation', + null, + InputOption::VALUE_NONE, + '@see PHPUnit guide, chapter: ' . $chapter, + ), new InputOption( 'order-by', null,