From 6fc2bc40ee873388ab9f6042e714cd08338a870c Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 2 Mar 2024 10:36:46 +0100 Subject: [PATCH 1/2] tests: fix deprecation from PHPUnit --- src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php index 1a3be5cac..9fbec4f6f 100644 --- a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php +++ b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php @@ -118,7 +118,7 @@ public function testReaderResponseIsJsonEncoded(): void $this->assertJson($result); $decodedResult = json_decode($result); - $this->assertObjectHasAttribute('city', $decodedResult); + $this->assertObjectHasProperty('city', $decodedResult); } /** From 44cec071fae93d41880ef0e05ce07c44a61f0749 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 2 Mar 2024 12:53:12 +0100 Subject: [PATCH 2/2] tests: fix deprecation from PHPUnit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1b1c70d83..0f3112222 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,7 @@ "phpstan/extension-installer": "^1.3", "phpstan/phpstan": "^1.10", "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^9.6.17", "symfony/http-client": "^5.4 || ^6.4 || ^7.0", "symfony/stopwatch": "^5.4 || ^6.4 || ^7.0" },