You are here

public function InlineTest::testExplicitStringCastingOfMappingKeys in Lockr 7.3

@group legacy @expectedDeprecation Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable instead. @expectedDeprecation Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1. @dataProvider getNotPhpCompatibleMappingKeyData

File

vendor/symfony/yaml/Tests/InlineTest.php, line 784

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testExplicitStringCastingOfMappingKeys($yaml, $expected) {
  $this
    ->assertSame($expected, Yaml::parse($yaml, Yaml::PARSE_KEYS_AS_STRINGS));
}