Skip to content

Commit

Permalink
Merge pull request #34 from cakephp/deprecated
Browse files Browse the repository at this point in the history
Deprecated
  • Loading branch information
othercorey committed Apr 10, 2020
2 parents 3f9b9b4 + c5359c8 commit c65e158
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
14 changes: 13 additions & 1 deletion psalm-baseline.xml
@@ -1,17 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.9.4@352bd3f5c5789db04e4010856c2f4e01ed354f4e">
<files psalm-version="3.10.1@eeed5ecccc10131397f0eb7ee6da810c0be3a7fc">
<file src="src/Twig/TokenParser/CellParser.php">
<DeprecatedClass occurrences="1">
<code>new CellNode($assign, $variable, $name, $data, $options, $token-&gt;getLine(), $this-&gt;getTag())</code>
</DeprecatedClass>
<InternalMethod occurrences="3">
<code>parseExpression</code>
<code>parseExpression</code>
<code>parseExpression</code>
</InternalMethod>
</file>
<file src="src/Twig/TokenParser/ElementParser.php">
<DeprecatedClass occurrences="1">
<code>new ElementNode($name, $data, $options, $token-&gt;getLine(), $this-&gt;getTag())</code>
</DeprecatedClass>
<InternalMethod occurrences="3">
<code>parseExpression</code>
<code>parseExpression</code>
<code>parseExpression</code>
</InternalMethod>
</file>
<file src="src/View/TwigView.php">
<DeprecatedClass occurrences="2">
<code>new TokenParser\CellParser()</code>
<code>new TokenParser\ElementParser()</code>
</DeprecatedClass>
</file>
</files>
2 changes: 2 additions & 0 deletions src/Twig/Node/Cell.php
Expand Up @@ -26,6 +26,8 @@

/**
* Class Cell.
*
* @deprecated 1.0.0 Cells are now rendered using `cell()` function instead, provided by `ViewExtension`.
*/
class Cell extends Node implements NodeOutputInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Twig/Node/Element.php
Expand Up @@ -25,6 +25,8 @@

/**
* Class Element.
*
* @deprecated 1.0.0 Elements are now rendered using `element()` function instead, provided by `ViewExtension`.
*/
class Element extends Node
{
Expand Down
2 changes: 2 additions & 0 deletions src/Twig/TokenParser/CellParser.php
Expand Up @@ -25,6 +25,8 @@

/**
* Class CellParser.
*
* @deprecated 1.0.0 Cells are now rendered using `cell()` function instead, provided by `ViewExtension`.
*/
class CellParser extends IncludeTokenParser
{
Expand Down
2 changes: 2 additions & 0 deletions src/Twig/TokenParser/ElementParser.php
Expand Up @@ -25,6 +25,8 @@

/**
* Class ElementParser.
*
* @deprecated 1.0.0 Elements are now rendered using `element()` function instead, provided by `ViewExtension`.
*/
class ElementParser extends IncludeTokenParser
{
Expand Down

0 comments on commit c65e158

Please sign in to comment.