@@ -19,7 +19,7 @@ abstract class BaseTestCase extends VeryBaseTestCase
1919 /**
2020 * @dataProvider getInvalidTests
2121 *
22- * @param int-mask-of<Constraint::CHECK_MODE_*> $checkMode
22+ * @param ? int-mask-of<Constraint::CHECK_MODE_*> $checkMode
2323 */
2424 public function testInvalidCases (string $ input , string $ schema , ?int $ checkMode = Constraint::CHECK_MODE_NORMAL , array $ errors = []): void
2525 {
@@ -50,8 +50,10 @@ public function testInvalidCases(string $input, string $schema, ?int $checkMode
5050
5151 /**
5252 * @dataProvider getInvalidForAssocTests
53+ *
54+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
5355 */
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
5557 {
5658 $ checkMode = $ checkMode ?? Constraint::CHECK_MODE_TYPE_CAST ;
5759 if ($ this ->validateSchema ) {
@@ -83,8 +85,10 @@ public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constra
8385
8486 /**
8587 * @dataProvider getValidTests
88+ *
89+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
8690 */
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
8892 {
8993 if ($ this ->validateSchema ) {
9094 $ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
@@ -107,8 +111,10 @@ public function testValidCases($input, $schema, $checkMode = Constraint::CHECK_M
107111
108112 /**
109113 * @dataProvider getValidForAssocTests
114+ *
115+ * @param ?int-mask-of<Constraint::CHECK_MODE_*> $checkMode
110116 */
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
112118 {
113119 if ($ this ->validateSchema ) {
114120 $ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
0 commit comments