mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-28 06:35:17 +00:00
Add void return type hint even in tests
This commit is contained in:
@@ -40,7 +40,7 @@ use Twig\Test\NodeTestCase;
|
||||
|
||||
class ModuleTest extends NodeTestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
public function testConstructor(): void
|
||||
{
|
||||
$body = new BodyNode([new TextNode('foo', 1)]);
|
||||
$parent = new ConstantExpression('layout.twig', 1);
|
||||
@@ -57,7 +57,7 @@ class ModuleTest extends NodeTestCase
|
||||
$this->assertEquals($source->getName(), $node->getTemplateName());
|
||||
}
|
||||
|
||||
public function testUseTagTemplateNameDoesNotInjectPhpInCompiledOutput()
|
||||
public function testUseTagTemplateNameDoesNotInjectPhpInCompiledOutput(): void
|
||||
{
|
||||
$evilName = "evil' . print('BAD-EOL') . '.twig";
|
||||
$loader = new ArrayLoader([
|
||||
|
||||
Reference in New Issue
Block a user