Skip to content

Commit 87fee1e

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [Validator] Skip tests using unavailable timezone on the local host [Yaml] Fix scope resolution operator in flow mapping keys
2 parents 31cc125 + d4f4a66 commit 87fee1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ private static function parseMapping(string $mapping, int $flags, int &$i = 0, a
459459
}
460460

461461
if ('!php/const' === $key || '!php/enum' === $key) {
462-
$key .= ' '.self::parseScalar($mapping, $flags, [':'], $i, false);
462+
$key .= ' '.self::parseScalar($mapping, $flags, ['(?<!:):(?!:)'], $i, false);
463463
$key = self::evaluateScalar($key, $flags);
464464
}
465465

Tests/InlineTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static function getTestsForParsePhpConstants()
5858
['{ foo: !php/const PHP_INT_MAX }', ['foo' => \PHP_INT_MAX]],
5959
['{ !php/const PHP_INT_MAX: foo }', [\PHP_INT_MAX => 'foo']],
6060
['!php/const NULL', null],
61+
['{ !php/const Symfony\Component\Yaml\Yaml::PARSE_CONSTANT: foo }', [Yaml::PARSE_CONSTANT => 'foo']],
6162
];
6263
}
6364

0 commit comments

Comments
 (0)