From 713a5b984a0f5dbd910e9c3b9f4feeb0fef8b393 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 5 Feb 2024 15:43:59 +0100 Subject: [PATCH] Fix tests --- src/Environment.php | 2 +- src/Node/CaptureNode.php | 2 +- tests/Node/BlockTest.php | 8 ++++---- tests/Node/SetTest.php | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Environment.php b/src/Environment.php index 3a7fe21d3d..b342ca7fe4 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -845,7 +845,7 @@ private function updateOptionsHash(): void \PHP_MINOR_VERSION, self::VERSION, (int) $this->debug, - (int) $this->strictVariables + (int) $this->strictVariables, ]); } } diff --git a/src/Node/CaptureNode.php b/src/Node/CaptureNode.php index 445516eb52..98fb6e9af8 100644 --- a/src/Node/CaptureNode.php +++ b/src/Node/CaptureNode.php @@ -46,6 +46,6 @@ public function compile(Compiler $compiler): void if (!$this->getAttribute('raw')) { $compiler->raw(") ? '' : new Markup(\$tmp, \$this->env->getCharset())"); } - $compiler->raw(";"); + $compiler->raw(';'); } } diff --git a/tests/Node/BlockTest.php b/tests/Node/BlockTest.php index 9953e57ac2..712360b52e 100644 --- a/tests/Node/BlockTest.php +++ b/tests/Node/BlockTest.php @@ -40,10 +40,10 @@ public function block_foo(\$context, array \$blocks = []) yield "foo"; } EOF - , new Environment(new ArrayLoader()) - ]; + , new Environment(new ArrayLoader()), + ]; - $tests[] = [new BlockNode('foo', new Node(), 1), <<