From 69cc30bce7697d51315d392123a3754bb61faa12 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 9 Aug 2016 18:38:48 +0200 Subject: [PATCH] Allowed failures on PHP 7.1 environments --- .travis.yml | 5 +++++ module/Common/src/Factory/CacheFactory.php | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52312334..0f92960b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,3 +23,8 @@ after_script: - php ocular.phar code-coverage:upload --format=php-clover build/clover.xml sudo: false + +matrix: + fast_finish: true + allow_failures: + - php: 7.1 diff --git a/module/Common/src/Factory/CacheFactory.php b/module/Common/src/Factory/CacheFactory.php index 1add99dd..905ebf56 100644 --- a/module/Common/src/Factory/CacheFactory.php +++ b/module/Common/src/Factory/CacheFactory.php @@ -59,10 +59,6 @@ class CacheFactory implements FactoryInterface case Cache\PhpFileCache::class: return new $cacheConfig['adapter']($cacheConfig['options']['dir']); case Cache\MemcachedCache::class: - if (! class_exists(\Memcached::class)) { - return new Cache\ArrayCache(); - } - $memcached = new \Memcached(); $servers = isset($cacheConfig['options']['servers']) ? $cacheConfig['options']['servers'] : [];