Skip to content

Commit 3253280

Browse files
authored
Merge pull request #281 from jeremykendall/bugfix/cache-default-initialisation
#280 bug fix cache throws when default cache directory is not present
2 parents 61f50ec + 4f2c86e commit 3253280

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All Notable changes to `PHP Domain Parser` **5.x** series will be documented in this file
44

5+
## 5.7.1 - 2020-08-04
6+
7+
### Added
8+
9+
- None
10+
11+
### Fixed
12+
13+
- Cache throws when cache directory doesn't exist [#280](https://github.com/jeremykendall/php-domain-parser/issues/280)
14+
15+
### Deprecated
16+
17+
- None
18+
19+
### Removed
20+
21+
- None
22+
523
## 5.7.0 - 2020-08-02
624

725
### Added
@@ -15,6 +33,7 @@ All Notable changes to `PHP Domain Parser` **5.x** series will be documented in
1533

1634
- Improve type hinting and return type by dropping EOL PHP versions support.
1735
- Improve development environment by dropping EOL PHP versions support.
36+
- Composer script
1837

1938
### Deprecated
2039

src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function __construct(string $cache_path = '')
8383
{
8484
if ('' === $cache_path) {
8585
/** @var string $cache_path */
86-
$cache_path = realpath(dirname(__DIR__).DIRECTORY_SEPARATOR.'data');
86+
$cache_path = realpath(dirname(__DIR__)).DIRECTORY_SEPARATOR.'data';
8787
}
8888

8989
if (!file_exists($cache_path) && file_exists(dirname($cache_path))) {

0 commit comments

Comments
 (0)