Skip to content

Commit

Permalink
fix: GacelaConfig with nullable arg on enableFileCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Dec 12, 2024
1 parent 79483c1 commit aff8919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/Bootstrap/GacelaConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function resetInMemoryCache(): self
/**
* Shortcut to setFileCache(true)
*/
public function enableFileCache(string $dir = null): self
public function enableFileCache(?string $dir = null): self
{
return $this->setFileCache(true, $dir);
}
Expand All @@ -196,7 +196,7 @@ public function enableFileCache(string $dir = null): self
* Define whether the file cache flag is enabled,
* and the file cache directory.
*/
public function setFileCache(bool $enabled, string $dir = null): self
public function setFileCache(bool $enabled, ?string $dir = null): self
{
$this->fileCacheEnabled = $enabled;
$this->fileCacheDirectory = $dir;
Expand Down

0 comments on commit aff8919

Please sign in to comment.