diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d89112ff..99bb23cf 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -9,9 +9,9 @@ jobs: steps: - name: Set up PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.1 coverage: none tools: composer-normalize diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4afbe0ff..68505a88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,17 +17,17 @@ jobs: services: redis: - image: redis:6.0.0 + image: redis:7.0 ports: - 6379:6379 redis-cluster: - image: grokzen/redis-cluster:5.0.4 + image: grokzen/redis-cluster:6.2.10 ports: - 7000:7000 - 7001:7001 - 7002:7002 env: - STANDALONE: 1 + IP: 0.0.0.0 memcached: image: memcached:1.6.5 ports: @@ -39,7 +39,7 @@ jobs: steps: - name: Set up PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: none diff --git a/composer.json b/composer.json index 858c316f..ac05163d 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "require-dev": { "cache/integration-tests": "^0.17", "defuse/php-encryption": "^2.0", - "illuminate/cache": "^5.4 || ^5.5 || ^5.6", + "illuminate/cache": "^5.4", "mockery/mockery": "^1.0", "phpunit/phpunit": "^7.5.20 || ^9.5.10", "predis/predis": "^1.1", diff --git a/src/Adapter/Illuminate/composer.json b/src/Adapter/Illuminate/composer.json index 03822e0f..eeb7cdc5 100644 --- a/src/Adapter/Illuminate/composer.json +++ b/src/Adapter/Illuminate/composer.json @@ -32,7 +32,7 @@ "php": ">=7.4", "cache/adapter-common": "^1.0", "cache/hierarchical-cache": "^1.0", - "illuminate/cache": "^5.4 || ^5.5 || ^5.6", + "illuminate/cache": "^5.4", "psr/cache": "^1.0 || ^2.0", "psr/simple-cache": "^1.0" }, @@ -55,6 +55,11 @@ "/Tests/" ] }, + "config": { + "allow-plugins": { + "kylekatarnls/update-helper": true + } + }, "extra": { "branch-alias": { "dev-master": "1.1-dev" diff --git a/src/Adapter/Predis/Changelog.md b/src/Adapter/Predis/Changelog.md index 82944367..dd5d3c19 100644 --- a/src/Adapter/Predis/Changelog.md +++ b/src/Adapter/Predis/Changelog.md @@ -4,6 +4,9 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee ## UNRELEASED +* Update predis/predis: ^2.0 +* Fixed unserialized(null) deprecation + ## 1.2.0 * Support for PHP 8.1 diff --git a/src/Adapter/Predis/PredisCachePool.php b/src/Adapter/Predis/PredisCachePool.php index f1ec6eee..ea737e53 100644 --- a/src/Adapter/Predis/PredisCachePool.php +++ b/src/Adapter/Predis/PredisCachePool.php @@ -42,7 +42,7 @@ public function __construct(Client $cache) */ protected function fetchObjectFromCache($key) { - if (false === $result = unserialize($this->cache->get($this->getHierarchyKey($key)))) { + if (false === $result = unserialize($this->cache->get($this->getHierarchyKey($key)) ?? '')) { return [false, null, [], null]; } diff --git a/src/Adapter/Predis/composer.json b/src/Adapter/Predis/composer.json index 2739326b..a90c3f42 100644 --- a/src/Adapter/Predis/composer.json +++ b/src/Adapter/Predis/composer.json @@ -27,7 +27,7 @@ "php": ">=7.4", "cache/adapter-common": "^1.0", "cache/hierarchical-cache": "^1.0", - "predis/predis": "^1.1", + "predis/predis": "^2.0", "psr/cache": "^1.0 || ^2.0", "psr/simple-cache": "^1.0" },