From bdcf28b4326a51b2bd9e346ff5af03bdf40a099c Mon Sep 17 00:00:00 2001 From: Wojtek Date: Mon, 6 Jan 2020 21:50:00 +0100 Subject: [PATCH 1/3] Update DOFileCacheDriver.php Save cache did not work without this extra line. --- src/Objects/CacheDrivers/DOFileCacheDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Objects/CacheDrivers/DOFileCacheDriver.php b/src/Objects/CacheDrivers/DOFileCacheDriver.php index cc26a17..0c8ef3a 100644 --- a/src/Objects/CacheDrivers/DOFileCacheDriver.php +++ b/src/Objects/CacheDrivers/DOFileCacheDriver.php @@ -27,6 +27,7 @@ public function set($key, $value) $cacheItem = $this->cache->getItem($key); $cacheItem->set($value); $cacheItem->expiresAfter(self::CACHE_EXPIRY_IN_SECONDS); + $this->cache->save($cacheItem); } public function get($key) From 36e3c8d8c2f20a728cb114704a1b48f6e3dcc0b4 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Fri, 10 Jan 2020 17:36:45 +0100 Subject: [PATCH 2/3] Update .travis.yml Removed HHVM from Travis file --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8a14d0..238a492 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,9 @@ php: - '5.6' - '7.0' - '7.1' - - 'hhvm' install: - composer update script: - ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml after_script: -- php vendor/bin/php-coveralls -v \ No newline at end of file +- php vendor/bin/php-coveralls -v From 444277bfe5e150940237f23753c98cd0f7d1c21b Mon Sep 17 00:00:00 2001 From: Wojtek Date: Fri, 10 Jan 2020 17:41:03 +0100 Subject: [PATCH 3/3] Update DOFileCacheDriver.php Bracket alignment to meet StyleCI requirements --- src/Objects/CacheDrivers/DOFileCacheDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/CacheDrivers/DOFileCacheDriver.php b/src/Objects/CacheDrivers/DOFileCacheDriver.php index 0c8ef3a..6e48c9d 100644 --- a/src/Objects/CacheDrivers/DOFileCacheDriver.php +++ b/src/Objects/CacheDrivers/DOFileCacheDriver.php @@ -18,7 +18,7 @@ public function __construct() [ 'cacheDirectory' => '/tmp/php-uk-bank-holidays-cache/', 'gzipCompression' => true, - ] + ] ); }