From 74ed1e6c5772338f8a18f4cbf63bdfcf2ef9baaf Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 13 Jan 2024 17:02:39 +0100 Subject: Fix PHP 7.4 compatibility (#6038) Some recent PRs have broken PHP 7.4 compatibility due to `mixed` typing. --- tests/app/Utils/dotpathUtilTest.php | 4 ++-- tests/bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/app/Utils/dotpathUtilTest.php b/tests/app/Utils/dotpathUtilTest.php index e4eab3041..eb1a1d486 100644 --- a/tests/app/Utils/dotpathUtilTest.php +++ b/tests/app/Utils/dotpathUtilTest.php @@ -4,7 +4,7 @@ declare(strict_types=1); class dotpathUtilTest extends PHPUnit\Framework\TestCase { /** - * @return Traversable,string,mixed}> + * @return Traversable,string,string}> */ public function provideJsonDots(): Traversable { $json = << $array */ - public function testJsonDots(array $array, string $key, mixed $expected): void { + public function testJsonDots(array $array, string $key, string $expected): void { $value = FreshRSS_dotpath_Util::get($array, $key); self::assertEquals($expected, $value); } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 447b038a4..f988855e6 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,7 +1,7 @@