Skip to content
Snippets Groups Projects
Commit a03d39df authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Twig is no longer optional > remove null case

parent 3cc42032
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,6 @@ class Template extends Response ...@@ -67,7 +67,6 @@ class Template extends Response
* The twig environment. * The twig environment.
* *
* @var \Twig\Environment * @var \Twig\Environment
* @psalm-suppress PropertyNotSetInConstructor Remove this annotation in 2.0
*/ */
private $twig; private $twig;
...@@ -622,9 +621,9 @@ class Template extends Response ...@@ -622,9 +621,9 @@ class Template extends Response
/** /**
* Get the current instance of Twig in use. * Get the current instance of Twig in use.
* *
* @return \Twig\Environment|null The Twig instance in use, or null if Twig is not used. * @return \Twig\Environment The Twig instance in use.
*/ */
public function getTwig(): ?\Twig\Environment public function getTwig(): \Twig\Environment
{ {
return $this->twig; return $this->twig;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment