Skip to content

Commit d0143d8

Browse files
authored
Apply suggestions from code review
1 parent 004e181 commit d0143d8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testExpectsStringCompatibleType()
5353
$this->validator->validate(new \stdClass(), new Length(['value' => 5]));
5454
}
5555

56-
public static function getThreeOrLessCharacters(): array
56+
public static function getThreeOrLessCharacters()
5757
{
5858
return [
5959
[12, 2],
@@ -67,7 +67,7 @@ public static function getThreeOrLessCharacters(): array
6767
];
6868
}
6969

70-
public static function getFourCharacters(): array
70+
public static function getFourCharacters()
7171
{
7272
return [
7373
[1234],
@@ -77,7 +77,7 @@ public static function getFourCharacters(): array
7777
];
7878
}
7979

80-
public static function getFiveOrMoreCharacters(): array
80+
public static function getFiveOrMoreCharacters()
8181
{
8282
return [
8383
[12345, 5],
@@ -91,7 +91,7 @@ public static function getFiveOrMoreCharacters(): array
9191
];
9292
}
9393

94-
public static function getOneCharset(): array
94+
public static function getOneCharset()
9595
{
9696
return [
9797
['é', 'utf8', true],
@@ -101,7 +101,7 @@ public static function getOneCharset(): array
101101
];
102102
}
103103

104-
public static function getThreeCharactersWithWhitespaces(): array
104+
public static function getThreeCharactersWithWhitespaces()
105105
{
106106
return [
107107
["\x20ccc"],

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testValidLocales($locale)
5353
$this->assertNoViolation();
5454
}
5555

56-
public static function getValidLocales(): array
56+
public static function getValidLocales()
5757
{
5858
return [
5959
['en'],
@@ -83,7 +83,7 @@ public function testInvalidLocales($locale)
8383
->assertRaised();
8484
}
8585

86-
public static function getInvalidLocales(): array
86+
public static function getInvalidLocales()
8787
{
8888
return [
8989
['baz'],

0 commit comments

Comments
 (0)