@@ -19,7 +19,7 @@ abstract class BaseTestCase extends VeryBaseTestCase
19
19
/**
20
20
* @dataProvider getInvalidTests
21
21
*
22
- * @param int-mask-of<Constraint::CHECK_MODE_*> $checkMode
22
+ * @param ? int-mask-of<Constraint::CHECK_MODE_*> $checkMode
23
23
*/
24
24
public function testInvalidCases (string $ input , string $ schema , ?int $ checkMode = Constraint::CHECK_MODE_NORMAL , array $ errors = []): void
25
25
{
@@ -50,8 +50,10 @@ public function testInvalidCases(string $input, string $schema, ?int $checkMode
50
50
51
51
/**
52
52
* @dataProvider getInvalidForAssocTests
53
+ *
54
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
53
55
*/
54
- public function testInvalidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , $ errors = []): void
56
+ public function testInvalidCasesUsingAssoc (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , array $ errors = []): void
55
57
{
56
58
$ checkMode = $ checkMode ?? Constraint::CHECK_MODE_TYPE_CAST ;
57
59
if ($ this ->validateSchema ) {
@@ -83,8 +85,10 @@ public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constra
83
85
84
86
/**
85
87
* @dataProvider getValidTests
88
+ *
89
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
86
90
*/
87
- public function testValidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL ): void
91
+ public function testValidCases (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_NORMAL ): void
88
92
{
89
93
if ($ this ->validateSchema ) {
90
94
$ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
@@ -107,8 +111,10 @@ public function testValidCases($input, $schema, $checkMode = Constraint::CHECK_M
107
111
108
112
/**
109
113
* @dataProvider getValidForAssocTests
114
+ *
115
+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
110
116
*/
111
- public function testValidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST ): void
117
+ public function testValidCasesUsingAssoc (string $ input , string $ schema , ? int $ checkMode = Constraint::CHECK_MODE_TYPE_CAST ): void
112
118
{
113
119
if ($ this ->validateSchema ) {
114
120
$ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
0 commit comments