We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759ba00 commit e2f2497Copy full SHA for e2f2497
Tests/Constraints/LocaleValidatorTest.php
@@ -91,9 +91,7 @@ public static function getInvalidLocales()
91
92
public function testTooLongLocale()
93
{
94
- $constraint = new Locale([
95
- 'message' => 'myMessage',
96
- ]);
+ $constraint = new Locale(message: 'myMessage');
97
98
$locale = str_repeat('a', (\defined('INTL_MAX_LOCALE_LEN') ? \INTL_MAX_LOCALE_LEN : 85) + 1);
99
$this->validator->validate($locale, $constraint);
0 commit comments