Skip to content

Commit 616b39f

Browse files
Merge branch '6.4' into 7.0
* 6.4: [Translation] Improve tests coverage [Routing] Add redirection.io as sponsor of versions 6.4/7.0/7.1 don't check parameter values if they are not set [HttpClient] Add Innovative Web AG (i-web) as sponsor of version 6.4/7.0 [Serializer] Fix normalization relying on allowed attributes only Minor @var doc update [Translation] Remove `@internal` from abstract testcases [VarExporter] Work around php/php-src#12695 for lazy objects, fixing nullsafe-related behavior [Validator] Add missing translations for Bulgarian #51931 [VarExporter] Fix serializing objects that implement __sleep() and that are made lazy fix typo Document BC break with $secret parameter introduction Bump Symfony version to 6.4.0 Update VERSION for 6.4.0-RC2 Update CHANGELOG for 6.4.0-RC2 [String] Fix Inflector for 'icon' [Validator] Made tests forward-compatible with ICU 72.1
2 parents 83df4ba + 33e1f3b commit 616b39f

12 files changed

+153
-72
lines changed

Resources/translations/validators.bg.xlf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,30 @@
402402
<source>The value of the netmask should be between {{ min }} and {{ max }}.</source>
403403
<target>Стойността на мрежовата маска трябва да бъде между {{ min }} и {{ max }}.</target>
404404
</trans-unit>
405+
<trans-unit id="104">
406+
<source>The filename is too long. It should have {{ filename_max_length }} character or less.|The filename is too long. It should have {{ filename_max_length }} characters or less.</source>
407+
<target>Името на файла е твърде дълго. Трябва да съдържа не повече от {{ filename_max_length }} символ.|Името на файла е твърде дълго. Трябва да съдържа не повече от {{ filename_max_length }} символа.</target>
408+
</trans-unit>
409+
<trans-unit id="105">
410+
<source>The password strength is too low. Please use a stronger password.</source>
411+
<target>Сложността на паролата е твърде малка. Моля използвайте по-сложна парола.</target>
412+
</trans-unit>
413+
<trans-unit id="106">
414+
<source>This value contains characters that are not allowed by the current restriction-level.</source>
415+
<target>Стойността съдържа символи, които не са позволени от текущото ниво на ограничение.</target>
416+
</trans-unit>
417+
<trans-unit id="107">
418+
<source>Using invisible characters is not allowed.</source>
419+
<target>Използването на невидими символи не е позволено.</target>
420+
</trans-unit>
421+
<trans-unit id="108">
422+
<source>Mixing numbers from different scripts is not allowed.</source>
423+
<target>Смесването на числа от различни скриптове не е позволено.</target>
424+
</trans-unit>
425+
<trans-unit id="109">
426+
<source>Using hidden overlay characters is not allowed.</source>
427+
<target>Използването на скрити насложени символи не е позволено.</target>
428+
</trans-unit>
405429
</body>
406430
</file>
407431
</xliff>

Tests/ConstraintValidatorTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
class ConstraintValidatorTest extends TestCase
2020
{
21+
use IcuCompatibilityTrait;
22+
2123
/**
2224
* @dataProvider formatValueProvider
2325
*/
@@ -43,10 +45,10 @@ public static function formatValueProvider(): array
4345
['object', $toString = new TestToStringObject()],
4446
['ccc', $toString, ConstraintValidator::OBJECT_TO_STRING],
4547
['object', $dateTime = new \DateTimeImmutable('1971-02-02T08:00:00UTC')],
46-
[class_exists(\IntlDateFormatter::class) ? 'Oct 4, 2019, 11:02 AM' : '2019-10-04 11:02:03', new \DateTimeImmutable('2019-10-04T11:02:03+09:00'), ConstraintValidator::PRETTY_DATE],
47-
[class_exists(\IntlDateFormatter::class) ? 'Feb 2, 1971, 8:00 AM' : '1971-02-02 08:00:00', $dateTime, ConstraintValidator::PRETTY_DATE],
48-
[class_exists(\IntlDateFormatter::class) ? 'Jan 1, 1970, 6:00 AM' : '1970-01-01 06:00:00', new \DateTimeImmutable('1970-01-01T06:00:00Z'), ConstraintValidator::PRETTY_DATE],
49-
[class_exists(\IntlDateFormatter::class) ? 'Jan 1, 1970, 3:00 PM' : '1970-01-01 15:00:00', (new \DateTimeImmutable('1970-01-01T23:00:00'))->setTimezone(new \DateTimeZone('America/New_York')), ConstraintValidator::PRETTY_DATE],
48+
[class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Oct 4, 2019, 11:02\u{202F}AM") : '2019-10-04 11:02:03', new \DateTimeImmutable('2019-10-04T11:02:03+09:00'), ConstraintValidator::PRETTY_DATE],
49+
[class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Feb 2, 1971, 8:00\u{202F}AM") : '1971-02-02 08:00:00', $dateTime, ConstraintValidator::PRETTY_DATE],
50+
[class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Jan 1, 1970, 6:00\u{202F}AM") : '1970-01-01 06:00:00', new \DateTimeImmutable('1970-01-01T06:00:00Z'), ConstraintValidator::PRETTY_DATE],
51+
[class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Jan 1, 1970, 3:00\u{202F}PM") : '1970-01-01 15:00:00', (new \DateTimeImmutable('1970-01-01T23:00:00'))->setTimezone(new \DateTimeZone('America/New_York')), ConstraintValidator::PRETTY_DATE],
5052
['FirstCase', TestEnum::FirstCase],
5153
];
5254

@@ -62,7 +64,7 @@ public function validate($value, Constraint $constraint): void
6264
{
6365
}
6466

65-
public function formatValueProxy($value, $format)
67+
public function formatValueProxy($value, int $format): string
6668
{
6769
return $this->formatValue($value, $format);
6870
}

Tests/Constraints/EqualToValidatorTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\EqualTo;
1616
use Symfony\Component\Validator\Constraints\EqualToValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class EqualToValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): EqualToValidator
2427
{
2528
return new EqualToValidator();
@@ -61,14 +64,14 @@ public static function provideInvalidComparisons(): array
6164
return [
6265
[1, '1', 2, '2', 'int'],
6366
['22', '"22"', '333', '"333"', 'string'],
64-
[new \DateTime('2001-01-01'), 'Jan 1, 2001, 12:00 AM', new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', 'DateTime'],
65-
[new \DateTime('2001-01-01'), 'Jan 1, 2001, 12:00 AM', '2000-01-01', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
66-
[new \DateTime('2001-01-01 UTC'), 'Jan 1, 2001, 12:00 AM', '2000-01-01 UTC', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
67+
[new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
68+
[new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
69+
[new \DateTime('2001-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
6770
[new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
6871
];
6972
}
7073

71-
public static function provideComparisonsToNullValueAtPropertyPath()
74+
public static function provideComparisonsToNullValueAtPropertyPath(): array
7275
{
7376
return [
7477
[5, '5', false],

Tests/Constraints/GreaterThanOrEqualValidatorTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\GreaterThanOrEqual;
1616
use Symfony\Component\Validator\Constraints\GreaterThanOrEqualValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class GreaterThanOrEqualValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): GreaterThanOrEqualValidator
2427
{
2528
return new GreaterThanOrEqualValidator();
@@ -64,14 +67,14 @@ public static function provideInvalidComparisons(): array
6467
{
6568
return [
6669
[1, '1', 2, '2', 'int'],
67-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', new \DateTime('2005/01/01'), 'Jan 1, 2005, 12:00 AM', 'DateTime'],
68-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', '2005/01/01', 'Jan 1, 2005, 12:00 AM', 'DateTime'],
69-
[new \DateTime('2000/01/01 UTC'), 'Jan 1, 2000, 12:00 AM', '2005/01/01 UTC', 'Jan 1, 2005, 12:00 AM', 'DateTime'],
70+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2005/01/01'), self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
71+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
72+
[new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
7073
['b', '"b"', 'c', '"c"', 'string'],
7174
];
7275
}
7376

74-
public static function provideComparisonsToNullValueAtPropertyPath()
77+
public static function provideComparisonsToNullValueAtPropertyPath(): array
7578
{
7679
return [
7780
[5, '5', true],

Tests/Constraints/GreaterThanValidatorTest.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\GreaterThan;
1616
use Symfony\Component\Validator\Constraints\GreaterThanValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class GreaterThanValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): GreaterThanValidator
2427
{
2528
return new GreaterThanValidator();
@@ -60,20 +63,20 @@ public static function provideInvalidComparisons(): array
6063
return [
6164
[1, '1', 2, '2', 'int'],
6265
[2, '2', 2, '2', 'int'],
63-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', new \DateTime('2005/01/01'), 'Jan 1, 2005, 12:00 AM', 'DateTime'],
64-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', 'DateTime'],
65-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', '2005/01/01', 'Jan 1, 2005, 12:00 AM', 'DateTime'],
66-
[new \DateTime('2000/01/01'), 'Jan 1, 2000, 12:00 AM', '2000/01/01', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
67-
[new \DateTime('2000/01/01 UTC'), 'Jan 1, 2000, 12:00 AM', '2005/01/01 UTC', 'Jan 1, 2005, 12:00 AM', 'DateTime'],
68-
[new \DateTime('2000/01/01 UTC'), 'Jan 1, 2000, 12:00 AM', '2000/01/01 UTC', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
66+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2005/01/01'), self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
67+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
68+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
69+
[new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000/01/01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
70+
[new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'],
71+
[new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
6972
[new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
7073
[new ComparisonTest_Class(5), '5', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
7174
['22', '"22"', '333', '"333"', 'string'],
7275
['22', '"22"', '22', '"22"', 'string'],
7376
];
7477
}
7578

76-
public static function provideComparisonsToNullValueAtPropertyPath()
79+
public static function provideComparisonsToNullValueAtPropertyPath(): array
7780
{
7881
return [
7982
[5, '5', true],

Tests/Constraints/IdenticalToValidatorTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\IdenticalTo;
1616
use Symfony\Component\Validator\Constraints\IdenticalToValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class IdenticalToValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): IdenticalToValidator
2427
{
2528
return new IdenticalToValidator();
@@ -81,13 +84,13 @@ public static function provideInvalidComparisons(): array
8184
[1, '1', 2, '2', 'int'],
8285
[2, '2', '2', '"2"', 'string'],
8386
['22', '"22"', '333', '"333"', 'string'],
84-
[new \DateTime('2001-01-01'), 'Jan 1, 2001, 12:00 AM', new \DateTime('2001-01-01'), 'Jan 1, 2001, 12:00 AM', 'DateTime'],
85-
[new \DateTime('2001-01-01'), 'Jan 1, 2001, 12:00 AM', new \DateTime('1999-01-01'), 'Jan 1, 1999, 12:00 AM', 'DateTime'],
87+
[new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), 'DateTime'],
88+
[new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('1999-01-01'), self::normalizeIcuSpaces("Jan 1, 1999, 12:00\u{202F}AM"), 'DateTime'],
8689
[new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
8790
];
8891
}
8992

90-
public static function provideComparisonsToNullValueAtPropertyPath()
93+
public static function provideComparisonsToNullValueAtPropertyPath(): array
9194
{
9295
return [
9396
[5, '5', false],

Tests/Constraints/LessThanOrEqualValidatorTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\LessThanOrEqual;
1616
use Symfony\Component\Validator\Constraints\LessThanOrEqualValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class LessThanOrEqualValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): LessThanOrEqualValidator
2427
{
2528
return new LessThanOrEqualValidator();
@@ -66,15 +69,15 @@ public static function provideInvalidComparisons(): array
6669
{
6770
return [
6871
[2, '2', 1, '1', 'int'],
69-
[new \DateTime('2010-01-01'), 'Jan 1, 2010, 12:00 AM', new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', 'DateTime'],
70-
[new \DateTime('2010-01-01'), 'Jan 1, 2010, 12:00 AM', '2000-01-01', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
71-
[new \DateTime('2010-01-01 UTC'), 'Jan 1, 2010, 12:00 AM', '2000-01-01 UTC', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
72+
[new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
73+
[new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
74+
[new \DateTime('2010-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
7275
[new ComparisonTest_Class(5), '5', new ComparisonTest_Class(4), '4', __NAMESPACE__.'\ComparisonTest_Class'],
7376
['c', '"c"', 'b', '"b"', 'string'],
7477
];
7578
}
7679

77-
public static function provideComparisonsToNullValueAtPropertyPath()
80+
public static function provideComparisonsToNullValueAtPropertyPath(): array
7881
{
7982
return [
8083
[5, '5', true],

Tests/Constraints/LessThanValidatorTest.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\LessThan;
1616
use Symfony\Component\Validator\Constraints\LessThanValidator;
17+
use Symfony\Component\Validator\Tests\IcuCompatibilityTrait;
1718

1819
/**
1920
* @author Daniel Holmes <[email protected]>
2021
*/
2122
class LessThanValidatorTest extends AbstractComparisonValidatorTestCase
2223
{
24+
use IcuCompatibilityTrait;
25+
2326
protected function createValidator(): LessThanValidator
2427
{
2528
return new LessThanValidator();
@@ -60,19 +63,19 @@ public static function provideInvalidComparisons(): array
6063
return [
6164
[3, '3', 2, '2', 'int'],
6265
[2, '2', 2, '2', 'int'],
63-
[new \DateTime('2010-01-01'), 'Jan 1, 2010, 12:00 AM', new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', 'DateTime'],
64-
[new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', 'DateTime'],
65-
[new \DateTime('2010-01-01'), 'Jan 1, 2010, 12:00 AM', '2000-01-01', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
66-
[new \DateTime('2000-01-01'), 'Jan 1, 2000, 12:00 AM', '2000-01-01', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
67-
[new \DateTime('2010-01-01 UTC'), 'Jan 1, 2010, 12:00 AM', '2000-01-01 UTC', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
68-
[new \DateTime('2000-01-01 UTC'), 'Jan 1, 2000, 12:00 AM', '2000-01-01 UTC', 'Jan 1, 2000, 12:00 AM', 'DateTime'],
66+
[new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
67+
[new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
68+
[new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
69+
[new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
70+
[new \DateTime('2010-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
71+
[new \DateTime('2000-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'],
6972
[new ComparisonTest_Class(5), '5', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
7073
[new ComparisonTest_Class(6), '6', new ComparisonTest_Class(5), '5', __NAMESPACE__.'\ComparisonTest_Class'],
7174
['333', '"333"', '22', '"22"', 'string'],
7275
];
7376
}
7477

75-
public static function provideComparisonsToNullValueAtPropertyPath()
78+
public static function provideComparisonsToNullValueAtPropertyPath(): array
7679
{
7780
return [
7881
[5, '5', true],

0 commit comments

Comments
 (0)