Skip to content

Commit

Permalink
Engine::setTempDirectory accepts null
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 24, 2019
1 parent 2c310b9 commit ba4a693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Latte/Engine.php
Expand Up @@ -50,7 +50,7 @@ class Engine
/** @var string */
private $contentType = self::CONTENT_HTML;

/** @var string */
/** @var string|null */
private $tempDirectory;

/** @var bool */
Expand Down Expand Up @@ -301,7 +301,7 @@ public function setContentType(string $type)
* Sets path to temporary directory.
* @return static
*/
public function setTempDirectory(string $path)
public function setTempDirectory(?string $path)
{
$this->tempDirectory = $path;
return $this;
Expand Down

0 comments on commit ba4a693

Please sign in to comment.