Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d415129

Browse files
committed
Deprecate PhpStringTokenParser
1 parent 8435fb9 commit d415129

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Component/Translation/CHANGELOG.md

+1
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

+5
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)