Skip to content

Commit 0a23178

Browse files
committed
refac: add return type to fix deprecation
Fix deprecation message in symfony 5.4 ``` Method "Twig\NodeVisitor\NodeVisitorInterface::getPriority()" might add "int" as a native return type declaration in the future. Do the same in implementation "Translation\Extractor\Visitor\Twig\TwigVisitor" now to avoid errors or add an explicit @return annotation to suppress this message. ```
1 parent ebe542b commit 0a23178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Visitor/Twig/TwigVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function leaveNode(Node $node, Environment $env): ?Node
5959
/**
6060
* {@inheritdoc}
6161
*/
62-
public function getPriority()
62+
public function getPriority(): int
6363
{
6464
return 0;
6565
}

0 commit comments

Comments
 (0)