8000 chore: allow psr/simple-cache v2 or v3 (#1150) · geocoder-php/Geocoder@9ab70d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ab70d6

Browse files
gnumoksharuudk
andauthored
chore: allow psr/simple-cache v2 or v3 (#1150)
* chore: allow psr/simple-cache v2 or v3 Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
1 parent 8144e51 commit 9ab70d6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php-http/promise": "^1.0",
2727
"psr/http-message-implementation": "^1.0",
2828
"psr/log": "^1.0|^2.0|^3.0",
29-
"psr/simple-cache": "^1.0"
29+
"psr/simple-cache": "^1.0|^2.0|^3.0"
3030
},
3131
"require-dev": {
3232
"cache/array-adapter": "^1.0",

src/Plugin/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"php": "^7.3 || ^8.0",
1818
"php-http/promise": "^1.0",
1919
"psr/log": "^1.0|^2.0|^3.0",
20-
"psr/simple-cache": "^1.0",
20+
"psr/simple-cache": "^1.0|^2.0|^3.0",
2121
"willdurand/geocoder": "^4.0"
2222
},
2323
"require-dev": {

src/Provider/Cache/Tests/ProviderCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testGeocodeMiss()
8383
$this->cacheMock->expects($this->once())
8484
->method('set')
8585
->with($this->anything(), $result, $ttl)
86-
->willReturn(null);
86+
->willReturn(true);
8787

8888
$this->providerMock->expects($this->once())
8989
->method('geocodeQuery')
@@ -127,7 +127,7 @@ public function testReverseMiss()
127127
$this->cacheMock->expects($this->once())
128128
->method('set')
129129
->with($this->anything(), $result, $ttl)
130-
->willReturn(null);
130+
->willReturn(true);
131131

132132
$this->providerMock->expects($this->once())
133133
->method('reverseQuery')

src/Provider/Cache/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"php": "^7.3 || ^8.0",
16-
"psr/simple-cache": "^1.0",
16+
"psr/simple-cache": "^1.0|^2.0|^3.0",
1717
"willdurand/geocoder": "^4.0.0"
1818
},
1919
"provide": {
@@ -41,4 +41,4 @@
4141
"test": "vendor/bin/phpunit",
4242
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)
0