diff --git a/composer.json b/composer.json index e97f61e98..07081360a 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "php-http/promise": "^1.0", "psr/http-message-implementation": "^1.0", "psr/log": "^1.0|^2.0|^3.0", - "psr/simple-cache": "^1.0" + "psr/simple-cache": "^1.0|^2.0|^3.0" }, "require-dev": { "cache/array-adapter": "^1.0", diff --git a/src/Plugin/composer.json b/src/Plugin/composer.json index 44f3bf60a..358cd16e8 100644 --- a/src/Plugin/composer.json +++ b/src/Plugin/composer.json @@ -17,7 +17,7 @@ "php": "^7.3 || ^8.0", "php-http/promise": "^1.0", "psr/log": "^1.0|^2.0|^3.0", - "psr/simple-cache": "^1.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", "willdurand/geocoder": "^4.0" }, "require-dev": { diff --git a/src/Provider/Cache/Tests/ProviderCacheTest.php b/src/Provider/Cache/Tests/ProviderCacheTest.php index 17d6937dc..cefe544ee 100644 --- a/src/Provider/Cache/Tests/ProviderCacheTest.php +++ b/src/Provider/Cache/Tests/ProviderCacheTest.php @@ -83,7 +83,7 @@ public function testGeocodeMiss() $this->cacheMock->expects($this->once()) ->method('set') ->with($this->anything(), $result, $ttl) - ->willReturn(null); + ->willReturn(true); $this->providerMock->expects($this->once()) ->method('geocodeQuery') @@ -127,7 +127,7 @@ public function testReverseMiss() $this->cacheMock->expects($this->once()) ->method('set') ->with($this->anything(), $result, $ttl) - ->willReturn(null); + ->willReturn(true); $this->providerMock->expects($this->once()) ->method('reverseQuery') diff --git a/src/Provider/Cache/composer.json b/src/Provider/Cache/composer.json index 77a2aabcd..7e72f07c8 100644 --- a/src/Provider/Cache/composer.json +++ b/src/Provider/Cache/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": "^7.3 || ^8.0", - "psr/simple-cache": "^1.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", "willdurand/geocoder": "^4.0.0" }, "provide": { @@ -41,4 +41,4 @@ "test": "vendor/bin/phpunit", "test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml" } -} \ No newline at end of file +}