Add @return void on last public methods

This commit is contained in:
Simon André
2025-01-02 07:11:23 +01:00
parent 24c688693b
commit 122943c1a1
4 changed files with 12 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@ abstract class CallExpression extends AbstractExpression
$this->compileCallable($compiler);
}
/**
* @return void
*/
protected function compileCallable(Compiler $compiler)
{
$twigCallable = $this->getAttribute('twig_callable');
+3
View File
@@ -57,6 +57,9 @@ final class ModuleNode extends Node
$this->setSourceContext($source);
}
/**
* @return void
*/
public function setIndex($index)
{
$this->setAttribute('index', $index);
+3
View File
@@ -264,6 +264,9 @@ class Parser
$this->traits[] = $trait;
}
/**
* @return void
*/
public function embedTemplate(ModuleNode $template)
{
$template->setIndex(mt_rand());
+3
View File
@@ -37,6 +37,9 @@ final class TokenStream
return implode("\n", $this->tokens);
}
/**
* @return void
*/
public function injectTokens(array $tokens)
{
$this->tokens = array_merge(\array_slice($this->tokens, 0, $this->current), $tokens, \array_slice($this->tokens, $this->current));