Skip to content

Commit

Permalink
used attribute Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 23, 2024
1 parent 4db7a55 commit 5df47ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Latte/Compiler/ExpressionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Latte\Compiler\Nodes\Php\Scalar;


/** @deprecated */
#[\Deprecated]

Check failure on line 20 in src/Latte/Compiler/ExpressionBuilder.php

View workflow job for this annotation

GitHub Actions / PHPStan

Attribute class Deprecated does not exist.
final class ExpressionBuilder
{
public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Latte/Compiler/Nodes/Php/ArrayItemNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class_alias(ArrayItemNode::class, Expression\ArrayItemNode::class);
namespace Latte\Compiler\Nodes\Php\Expression;

if (false) {

Check failure on line 69 in src/Latte/Compiler/Nodes/Php/ArrayItemNode.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
/** @deprecated use Latte\Compiler\Nodes\Php\ArrayItemNode */
#[\Deprecated('use Latte\Compiler\Nodes\Php\ArrayItemNode')]

Check failure on line 70 in src/Latte/Compiler/Nodes/Php/ArrayItemNode.php

View workflow job for this annotation

GitHub Actions / PHPStan

Attribute class Deprecated does not exist.
class ArrayItemNode
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function &getIterator(): \Generator
class_alias(StaticMethodCallNode::class, StaticCallNode::class);

if (false) {
/** @deprecated use Latte\Compiler\Nodes\Php\Expression\StaticMethodCallNode */
#[\Deprecated('use Latte\Compiler\Nodes\Php\Expression\StaticMethodCallNode')]
class StaticCallNode
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function &getIterator(): \Generator
class_alias(StaticMethodCallableNode::class, StaticCallableNode::class);

if (false) {
/** @deprecated use Latte\Compiler\Nodes\Php\Expression\StaticMethodCallableNode */
#[\Deprecated('use Latte\Compiler\Nodes\Php\Expression\StaticMethodCallableNode')]
class StaticCallableNode
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/Latte/Compiler/TagParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function tryConsumeTokenBeforeUnquotedString(string ...$kind): ?Token
}


/** @deprecated use tryConsumeTokenBeforeUnquotedString() */
#[\Deprecated('use tryConsumeTokenBeforeUnquotedString()')]
public function tryConsumeModifier(string ...$kind): ?Token
{
return $this->tryConsumeTokenBeforeUnquotedString(...$kind);
Expand Down

0 comments on commit 5df47ec

Please sign in to comment.