@@ -26,7 +26,7 @@ abstract class BaseTestCase extends VeryBaseTestCase
26
26
/**
27
27
* @dataProvider getInvalidTests
28
28
*
29
- * @param int-mask-of<Constraint::CHECK_MODE_*> $checkMode
29
+ * @param ? int-mask-of<Constraint::CHECK_MODE_*> $checkMode
30
30
*/
31
31
public function testInvalidCases (string $ input , string $ schema , ?int $ checkMode = Constraint::CHECK_MODE_NORMAL , array $ errors = []): void
32
32
{
@@ -57,8 +57,10 @@ public function testInvalidCases(string $input, string $schema, ?int $checkMode
57
57
58
58
/**
59
59
* @dataProvider getInvalidForAssocTests
60
+ *
61
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
60
62
*/
61
- public function testInvalidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , $ errors = []): void
63
+ public function testInvalidCasesUsingAssoc (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , array $ errors = []): void
62
64
{
63
65
$ checkMode = $ checkMode === null ? Constraint::CHECK_MODE_TYPE_CAST : $ checkMode ;
64
66
if ($ this ->validateSchema ) {
@@ -90,8 +92,10 @@ public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constra
90
92
91
93
/**
92
94
* @dataProvider getValidTests
95
+ *
96
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
93
97
*/
94
- public function testValidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL ): void
98
+ public function testValidCases (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_NORMAL ): void
95
99
{
96
100
if ($ this ->validateSchema ) {
97
101
$ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
@@ -114,8 +118,10 @@ public function testValidCases($input, $schema, $checkMode = Constraint::CHECK_M
114
118
115
119
/**
116
120
* @dataProvider getValidForAssocTests
121
+ *
122
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
117
123
*/
118
- public function testValidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST ): void
124
+ public function testValidCasesUsingAssoc (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_TYPE_CAST ): void
119
125
{
120
126
if ($ this ->validateSchema ) {
121
127
$ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
0 commit comments