44 => 'bar',
],
45 => 'baz',
46,
],
Yaml::DUMP_NUMERIC_KEY_AS_STRING,
"{ '42': { foo: 43, '44': bar }, '45': baz, '46': 46 }",
];
yield 'Int tagged value with flag' => [
[
'count' => new TaggedValue('number', 5),
],
Yaml::DUMP_NUMERIC_KEY_AS_STRING,
'{ count: !number 5 }',
];
yield 'Array tagged value with flag' => [
[
'user' => new TaggedValue('metadata', [
'john',
42,
]),
],