Skip to content

Commit 22c45ae

Browse files
Pass --fail-on-deprecation to PHPUnit worker (#930)
1 parent be947b2 commit 22c45ae

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

phpstan-baseline.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ parameters:
1919
path: src/Options.php
2020

2121
-
22-
message: '#^Parameter \#7 \$phpunitOptions of class ParaTest\\Options constructor expects array\<non\-empty\-string, list\<non\-empty\-string\>\|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\<min, \-1\>\|int\<1, max\>\|non\-falsy\-string\|true\> given\.$#'
22+
message: '#^Parameter \#7 \$phpunitOptions of class ParaTest\\Options constructor expects array\<non\-empty\-string, list\<non\-empty\-string\>\|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\<min, \-1\>\|int\<1, max\>\|non\-falsy\-string\|true\> given\.$#'
2323
identifier: argument.type
2424
count: 1
2525
path: src/Options.php

src/Options.php

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ final class Options
6060
'fail-on-risky' => true,
6161
'fail-on-skipped' => true,
6262
'fail-on-warning' => true,
63+
'fail-on-deprecation' => true,
6364
'filter' => true,
6465
'group' => true,
6566
'no-configuration' => true,
@@ -424,6 +425,12 @@ public static function setInputDefinition(InputDefinition $inputDefinition): voi
424425
InputOption::VALUE_NONE,
425426
'@see PHPUnit guide, chapter: ' . $chapter,
426427
),
428+
new InputOption(
429+
'fail-on-deprecation',
430+
null,
431+
InputOption::VALUE_NONE,
432+
'@see PHPUnit guide, chapter: ' . $chapter,
433+
),
427434
new InputOption(
428435
'order-by',
429436
null,

0 commit comments

Comments
 (0)