Skip to content

Commit d0dc7b2

Browse files
committed
minor #47928 [Translation] Deprecate PhpStringTokenParser (welcoMattic)
This PR was merged into the 6.2 branch. Discussion ---------- [Translation] Deprecate PhpStringTokenParser | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | | License | MIT | Doc PR | Following #46161, we could deprecate PhpStringTokenParser, as it's only used by PhpExtractor (which is now deprecated). Commits ------- d415129 Deprecate PhpStringTokenParser
2 parents 8435fb9 + d415129 commit d0dc7b2

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