@@ -26,7 +26,7 @@ abstract class BaseTestCase extends VeryBaseTestCase
2626 /**
2727 * @dataProvider getInvalidTests
2828 */
29- public function testInvalidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL , $ errors = [])
29+ public function testInvalidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL , $ errors = []): void
3030 {
3131 $ checkMode = $ checkMode === null ? Constraint::CHECK_MODE_NORMAL : $ checkMode ;
3232 if ($ this ->validateSchema ) {
@@ -55,7 +55,7 @@ public function testInvalidCases($input, $schema, $checkMode = Constraint::CHECK
5555 /**
5656 * @dataProvider getInvalidForAssocTests
5757 */
58- public function testInvalidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , $ errors = [])
58+ public function testInvalidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST , $ errors = []): void
5959 {
6060 $ checkMode = $ checkMode === null ? Constraint::CHECK_MODE_TYPE_CAST : $ checkMode ;
6161 if ($ this ->validateSchema ) {
@@ -87,7 +87,7 @@ public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constra
8787 /**
8888 * @dataProvider getValidTests
8989 */
90- public function testValidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL )
90+ public function testValidCases ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_NORMAL ): void
9191 {
9292 if ($ this ->validateSchema ) {
9393 $ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
@@ -109,7 +109,7 @@ public function testValidCases($input, $schema, $checkMode = Constraint::CHECK_M
109109 /**
110110 * @dataProvider getValidForAssocTests
111111 */
112- public function testValidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST )
112+ public function testValidCasesUsingAssoc ($ input , $ schema , $ checkMode = Constraint::CHECK_MODE_TYPE_CAST ): void
113113 {
114114 if ($ this ->validateSchema ) {
115115 $ checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA ;
@@ -133,28 +133,16 @@ public function testValidCasesUsingAssoc($input, $schema, $checkMode = Constrain
133133 $ this ->assertTrue ($ validator ->isValid (), print_r ($ validator ->getErrors (), true ));
134134 }
135135
136- /**
137- * @return array[]
138- */
139- abstract public function getValidTests ();
136+ abstract public function getValidTests (): array ;
140137
141- /**
142- * @return array[]
143- */
144- public function getValidForAssocTests ()
138+ public function getValidForAssocTests (): array
145139 {
146140 return $ this ->getValidTests ();
147141 }
148142
149- /**
150- * @return array[]
151- */
152- abstract public function getInvalidTests ();
143+ abstract public function getInvalidTests (): array ;
153144
154- /**
155- * @return array[]
156- */
157- public function getInvalidForAssocTests ()
145+ public function getInvalidForAssocTests (): array
158146 {
159147 return $ this ->getInvalidTests ();
160148 }
0 commit comments