Skip to content

Commit 43f8145

Browse files
norkunasjbelien
andauthored
Resolve some deprecations and remove igorw/get-in dependency (#1257)
* Remove `igorw/get-in` dependency to simplify code * Fix phpunit deprecation * Simplify phpunit's `->will($this->returnValue())` with `->willReturn()` * Simplify phpunit's `->will($this->returnCallback())` with `->willReturnCallback()` * Fix deprecated mock builder `setMethds` with `createPartialMock` * Remove deprecated phpstan `checkGenericClassInNonGenericObjectType` option * Bump phpunit to 9.6 --------- Co-authored-by: Jonathan Beliën <[email protected]>
1 parent 72bd9e0 commit 43f8145

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/TimedGeocoderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testGeocode(): void
4747
{
4848
$this->delegate->expects($this->once())
4949
->method('geocodeQuery')
50-
->will($this->returnValue(new AddressCollection([])));
50+
->willReturn(new AddressCollection([]));
5151

5252
$this->geocoder->geocode('foo');
5353

@@ -74,7 +74,7 @@ public function testReverse(): void
7474
{
7575
$this->delegate->expects($this->once())
7676
->method('reverseQuery')
77-
->will($this->returnValue(new AddressCollection([])));
77+
->willReturn(new AddressCollection([]));
7878

7979
$this->geocoder->reverse(0, 0);
8080

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"nyholm/nsa": "^1.1",
24-
"phpunit/phpunit": "^9.5",
24+
"phpunit/phpunit": "^9.6.11",
2525
"symfony/stopwatch": "~2.5 || ~5.0 || ~7.0"
2626
},
2727
"suggest": {

0 commit comments

Comments
 (0)