mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 22:05:44 +00:00
Fix CS
This commit is contained in:
@@ -179,7 +179,7 @@ class EnvironmentTest extends TestCase
|
||||
|
||||
// force compilation
|
||||
$twig = new Environment($loader = new ArrayLoader(['index' => '{{ foo }}']), $options);
|
||||
$twig->addExtension($extension = new class() extends AbstractExtension {
|
||||
$twig->addExtension($extension = new class extends AbstractExtension {
|
||||
public bool $throw = false;
|
||||
|
||||
public function getFilters(): array
|
||||
@@ -475,7 +475,7 @@ EOF
|
||||
public function testResettingGlobals()
|
||||
{
|
||||
$twig = new Environment(new ArrayLoader(['index' => '']));
|
||||
$twig->addExtension(new class() extends AbstractExtension implements GlobalsInterface {
|
||||
$twig->addExtension(new class extends AbstractExtension implements GlobalsInterface {
|
||||
public function getGlobals(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user