mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 09:56:32 +00:00
feature #3763 Remove internal from ExpressionParser (VincentLanglet)
This PR was merged into the 3.x branch.
Discussion
----------
Remove internal from ExpressionParser
In the advanced doc, it's explained how to write TokenParser:
https://github.com/twigphp/Twig/blob/3.x/doc/advanced.rst#defining-a-token-parser
Such an implementation rely on method like
ExpressionParser::parseExpression or Expression::parseMultitargetExpression,
Currently the ExpressionParser is marked as internal, implying all the method are also internal.
It would be great to promise BC about those methods since they are require/usefull for custom TokenParser.
I dunno if the ``@internal`` tag is still needed for some methods of the ExpressionParser (like the constructor ?).
This would also
Closes https://github.com/twigphp/Twig/issues/3443
Commits
-------
de0f947e Remove internal from ExpressionParser
This commit is contained in:
@@ -40,8 +40,6 @@ use Twig\Node\Node;
|
||||
* @see https://en.wikipedia.org/wiki/Operator-precedence_parser
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ExpressionParser
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user