minor #2875 Fix deprecation notes (nicolas-grekas)

This PR was merged into the 2.x branch.

Discussion
----------

Fix deprecation notes

`ExpressionParser` still uses `since version [...]` because the message is not only about Twig: any package providing extensions can trigger it.

Commits
-------

0f8d66be Fix deprecation notes
This commit is contained in:
Fabien Potencier
2019-03-10 12:28:16 +01:00
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ use Twig\Source;
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since version 2.4.0
* @final since Twig 2.4.0
*/
class ModuleNode extends Node
{
+1 -1
View File
@@ -14,7 +14,7 @@ namespace Twig\Profiler;
/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since version 2.4.0
* @final since Twig 2.4.0
*/
class Profile implements \IteratorAggregate, \Serializable
{
+1 -1
View File
@@ -17,7 +17,7 @@ use Twig\Node\Node;
/**
* Represents a template filter.
*
* @final since version 2.4.0
* @final since Twig 2.4.0
*
* @author Fabien Potencier <fabien@symfony.com>
*
+1 -1
View File
@@ -16,7 +16,7 @@ use Twig\Node\Expression\TestExpression;
/**
* Represents a template test.
*
* @final since version 2.4.0
* @final since Twig 2.4.0
*
* @author Fabien Potencier <fabien@symfony.com>
*
@@ -1,7 +1,7 @@
--TEST--
capturing "block" tag
--DEPRECATION--
The spaceless tag is deprecated since version 2.7, use the spaceless filter instead.
The spaceless tag is deprecated since Twig 2.7, use the spaceless filter instead.
--TEMPLATE--
{% set foo %}{% block foo %}FOO{% endblock %}{% endset %}
{{ foo }}
@@ -1,7 +1,7 @@
--TEST--
"spaceless" tag in the root level of a child template
--DEPRECATION--
The spaceless tag is deprecated since version 2.7, use the spaceless filter instead.
The spaceless tag is deprecated since Twig 2.7, use the spaceless filter instead.
Using the spaceless tag at the root level of a child template in "index.twig" at line 3 is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.
Nesting a block definition under a non-capturing node in "index.twig" at line 4 is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.
--TEMPLATE--
@@ -1,7 +1,7 @@
--TEST--
"spaceless" tag removes whites between HTML tags
--DEPRECATION--
The spaceless tag is deprecated since version 2.7, use the spaceless filter instead.
The spaceless tag is deprecated since Twig 2.7, use the spaceless filter instead.
--TEMPLATE--
{% spaceless %}