diff --git a/src/Latte/Compiler/ExpressionBuilder.php b/src/Latte/Compiler/ExpressionBuilder.php index be20e3f74..c43045e52 100644 --- a/src/Latte/Compiler/ExpressionBuilder.php +++ b/src/Latte/Compiler/ExpressionBuilder.php @@ -17,7 +17,7 @@ use Latte\Compiler\Nodes\Php\Scalar; -/** @deprecated */ +#[\Deprecated] final class ExpressionBuilder { public function __construct( diff --git a/src/Latte/Compiler/Nodes/Php/ArrayItemNode.php b/src/Latte/Compiler/Nodes/Php/ArrayItemNode.php index 771f6e31d..12d8455b5 100644 --- a/src/Latte/Compiler/Nodes/Php/ArrayItemNode.php +++ b/src/Latte/Compiler/Nodes/Php/ArrayItemNode.php @@ -67,7 +67,7 @@ class_alias(ArrayItemNode::class, Expression\ArrayItemNode::class); namespace Latte\Compiler\Nodes\Php\Expression; if (false) { - /** @deprecated use Latte\Compiler\Nodes\Php\ArrayItemNode */ + #[\Deprecated('use Latte\Compiler\Nodes\Php\ArrayItemNode')] class ArrayItemNode { } diff --git a/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallNode.php b/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallNode.php index c288e90f2..fcf51e46f 100644 --- a/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallNode.php +++ b/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallNode.php @@ -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 { } diff --git a/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallableNode.php b/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallableNode.php index 4c5139338..5b5140bee 100644 --- a/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallableNode.php +++ b/src/Latte/Compiler/Nodes/Php/Expression/StaticMethodCallableNode.php @@ -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 { } diff --git a/src/Latte/Compiler/TagParser.php b/src/Latte/Compiler/TagParser.php index 55019ca65..23f35c6ff 100644 --- a/src/Latte/Compiler/TagParser.php +++ b/src/Latte/Compiler/TagParser.php @@ -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);