Skip to content

Commit

Permalink
fixed invalid syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Feb 22, 2023
1 parent 2ade733 commit cbfa126
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [1.15.13] - 2023-02-22
- Fixed: invalid syntax

## [1.15.12] - 2023-01-09
- Changed: allow phpfastcache 7 for usage in projects with php 8
- Changed: adapt usage of phpfastcache to work with the new version
Expand Down
6 changes: 5 additions & 1 deletion library/Haste/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ class FileCache extends Cache

protected static $driver = 'files';

protected static function extendOptions($config = new ConfigurationOption): ConfigurationOption
protected static function extendOptions($config = null): ConfigurationOption
{
if (!$config) {
$config = new ConfigurationOption();
}

$filename = TL_ROOT . '/' . ltrim(self::$cacheDir, '/');

if (!is_dir($filename)) {
Expand Down

0 comments on commit cbfa126

Please sign in to comment.