From 9011aa176491f593e5b4d2a2cf0950a1fcff310a Mon Sep 17 00:00:00 2001 From: Dany Maillard Date: Tue, 4 Jul 2017 16:13:47 +0200 Subject: [PATCH] Remove !str support --- src/Symfony/Component/Yaml/Inline.php | 4 ---- src/Symfony/Component/Yaml/Tests/InlineTest.php | 9 --------- 2 files changed, 13 deletions(-) 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 }')); - } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy