Skip to content

Commit 342cb73

Browse files
committed
-
1 parent d0143d8 commit 342cb73

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Symfony/Component/Validator/Tests/Constraints/LuhnValidatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testValidNumbers($number)
4747
$this->assertNoViolation();
4848
}
4949

50-
public static function getValidNumbers(): array
50+
public static function getValidNumbers()
5151
{
5252
return [
5353
['42424242424242424242'],
@@ -88,7 +88,7 @@ public function testInvalidNumbers($number, $code)
8888
->assertRaised();
8989
}
9090

91-
public static function getInvalidNumbers(): array
91+
public static function getInvalidNumbers()
9292
{
9393
return [
9494
['1234567812345678', Luhn::CHECKSUM_FAILED_ERROR],
@@ -110,7 +110,7 @@ public function testInvalidTypes($number)
110110
$this->validator->validate($number, $constraint);
111111
}
112112

113-
public static function getInvalidTypes(): array
113+
public static function getInvalidTypes()
114114
{
115115
return [
116116
[0],

src/Symfony/Component/Validator/Tests/Constraints/TimeValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testValidTimes($time)
6060
$this->assertNoViolation();
6161
}
6262

63-
public static function getValidTimes(): array
63+
public static function getValidTimes()
6464
{
6565
return [
6666
['01:02:03'],
@@ -81,7 +81,7 @@ public function testValidTimesWithoutSeconds(string $time)
8181
$this->assertNoViolation();
8282
}
8383

84-
public static function getValidTimesWithoutSeconds(): array
84+
public static function getValidTimesWithoutSeconds()
8585
{
8686
return [
8787
['01:02'],
@@ -103,7 +103,7 @@ public function testInvalidTimesWithoutSeconds(string $time)
103103
->assertRaised();
104104
}
105105

106-
public static function getInvalidTimesWithoutSeconds(): array
106+
public static function getInvalidTimesWithoutSeconds()
107107
{
108108
return [
109109
['01:02'],
@@ -129,7 +129,7 @@ public function testInvalidTimes($time, $code)
129129
->assertRaised();
130130
}
131131

132-
public static function getInvalidTimes(): array
132+
public static function getInvalidTimes()
133133
{
134134
return [
135135
['foobar', Time::INVALID_FORMAT_ERROR],

0 commit comments

Comments
 (0)