Make NodeTestCase::getEnvironment() final

This commit is contained in:
Fabien Potencier
2024-09-04 07:56:08 +02:00
parent 09d2b155d2
commit 6f885353f3
+1 -4
View File
@@ -53,10 +53,7 @@ abstract class NodeTestCase extends TestCase
return new Compiler($environment ?? $this->getEnvironment());
}
/**
* @final since Twig 3.13
*/
protected function getEnvironment()
final private function getEnvironment()
{
return $this->currentEnv ??= static::createEnvironment();
}