Skip to content

Commit 2e64730

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: fix merge [VarDumper] Test intl formatter broken since dumper does not replace the nnbsp character by standard space [WebProfilerBundle] Fix intercept external redirects [Webhook] Added missing XML attribute in config XSD [String] Skip a test when an issue is detected in PCRE2 [ExpressionLanguage] Fix null coalescing propagation [Mailer] Stop using the (local) AWS shared configuration in the PHPUnit tests. detect colors on not windows fix xterm detection refactor: hyper check Missing translations for Slovak (sk) #51954 Remove redundant PHPdoc line properly handle SYMFONY_DOTENV_VARS being the empty string Avoid incompatibility with symfony/console 7 bug #45057 [Messenger] Avoid reconnecting active Redis connections. [HttpKernel] Catch `TypeError` if the wrong type is used in `BackedEnumValueResolver` [Serializer] fix regression where nullable int cannot be serialized do not overwrite an application's default serialization context
2 parents a15689c + cc78f14 commit 2e64730

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Tests/AbstractUnicodeTestCase.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,21 @@ public function testCodePointsAt(array $expected, string $string, int $offset, i
134134

135135
public static function provideCodePointsAt(): array
136136
{
137-
return [
137+
$data = [
138138
[[], '', 0],
139139
[[], 'a', 1],
140140
[[0x53], 'Späßchen', 0],
141141
[[0xE4], 'Späßchen', 2],
142142
[[0xDF], 'Späßchen', -5],
143-
[[0x260E], '☢☎❄', 1],
144143
];
144+
145+
// Skip this set if we encounter an issue in PCRE2
146+
// @see https://github.com/PCRE2Project/pcre2/issues/361
147+
if (3 === grapheme_strlen('☢☎❄')) {
148+
$data[] = [[0x260E], '☢☎❄', 1];
149+
}
150+
151+
return $data;
145152
}
146153

147154
public static function provideLength(): array

0 commit comments

Comments
 (0)