diff --git a/src/Symfony/Component/Yaml/Inline.php b/src/Symfony/Component/Yaml/Inline.php index 29645fadf70be..f0ab6a37f5c34 100644 --- a/src/Symfony/Component/Yaml/Inline.php +++ b/src/Symfony/Component/Yaml/Inline.php @@ -550,10 +550,6 @@ private static function evaluateScalar($scalar, $flags, $references = array()) return false; case $scalar[0] === '!': switch (true) { - case 0 === strpos($scalar, '!str'): - @trigger_error('Support for the !str tag is deprecated since version 3.4. Use the !!str tag instead.', E_USER_DEPRECATED); - - return (string) substr($scalar, 5); case 0 === strpos($scalar, '!!str '): return (string) substr($scalar, 6); case 0 === strpos($scalar, '! '): diff --git a/src/Symfony/Component/Yaml/Tests/InlineTest.php b/src/Symfony/Component/Yaml/Tests/InlineTest.php index dd4bfd2ae5f10..23e96b38da508 100644 --- a/src/Symfony/Component/Yaml/Tests/InlineTest.php +++ b/src/Symfony/Component/Yaml/Tests/InlineTest.php @@ -703,13 +703,4 @@ public function getNotPhpCompatibleMappingKeyData() 'float' => array('{0.25: "foo"}', array('0.25' => 'foo')), ); } - - /** - * @group legacy - * @expectedDeprecation Support for the !str tag is deprecated since version 3.4. Use the !!str tag instead. - */ - public function testDeprecatedStrTag() - { - $this->assertSame(array('foo' => 'bar'), Inline::parse('{ foo: !str bar }')); - } }