Skip to content

Commit b8d7d86

Browse files
Merge branch '7.2' into 7.3
* 7.2: - - CS fixes
2 parents 0c35550 + 0df1031 commit b8d7d86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private static function dumpArray(array $value, int $flags): string
243243
private static function dumpHashArray(array|\ArrayObject|\stdClass $value, int $flags): string
244244
{
245245
$output = [];
246-
$keyFlags = $flags &~ Yaml::DUMP_FORCE_DOUBLE_QUOTES_ON_VALUES;
246+
$keyFlags = $flags & ~Yaml::DUMP_FORCE_DOUBLE_QUOTES_ON_VALUES;
247247
foreach ($value as $key => $val) {
248248
if (\is_int($key) && Yaml::DUMP_NUMERIC_KEY_AS_STRING & $flags) {
249249
$key = (string) $key;

Tests/DumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ public static function getForceQuotesOnValuesData(): iterable
946946
];
947947

948948
yield 'backslash' => [
949-
['foo' => "back\\slash"],
949+
['foo' => 'back\\slash'],
950950
'{ foo: "back\\\\slash" }',
951951
];
952952

0 commit comments

Comments
 (0)