Skip to content

Commit 65d0eb5

Browse files
committed
Deprecate PhpStringTokenParser
1 parent 6e36c4e commit 65d0eb5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Component/Translation/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
6.2
55
---
66

7+
* Deprecate `PhpStringTokenParser`
78
* Deprecate `PhpExtractor` in favor of `PhpAstExtractor`
89
* Add `PhpAstExtractor` (requires [nikic/php-parser](https://github.com/nikic/php-parser) to be installed)
910

src/Symfony/Component/Translation/Extractor/PhpStringTokenParser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Translation\Extractor;
1313

14+
trigger_deprecation('symfony/translation', '6.2', '"%s" is deprecated.', PhpStringTokenParser::class);
15+
1416
/*
1517
* The following is derived from code at http://github.com/nikic/PHP-Parser
1618
*
@@ -47,6 +49,9 @@
4749
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4850
*/
4951

52+
/**
53+
* @deprecated since Symfony 6.2
54+
*/
5055
class PhpStringTokenParser
5156
{
5257
protected static $replacements = [

0 commit comments

Comments
 (0)
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