mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
Simplify code
This commit is contained in:
@@ -53,11 +53,7 @@ abstract class NodeTestCase extends TestCase
|
||||
|
||||
protected function getEnvironment()
|
||||
{
|
||||
if (!$this->currentEnv) {
|
||||
$this->currentEnv = new Environment(new ArrayLoader());
|
||||
}
|
||||
|
||||
return $this->currentEnv;
|
||||
return $this->currentEnv ??= new Environment(new ArrayLoader());
|
||||
}
|
||||
|
||||
protected function getVariableGetter($name, $line = false)
|
||||
|
||||
Reference in New Issue
Block a user