aboutsummaryrefslogtreecommitdiff
path: root/tests/app/Utils
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-01-13 17:02:39 +0100
committerGravatar GitHub <noreply@github.com> 2024-01-13 17:02:39 +0100
commit74ed1e6c5772338f8a18f4cbf63bdfcf2ef9baaf (patch)
treea08f3a30d811f1cb94a1adcef06e99b424a58dee /tests/app/Utils
parent9c97d8ca729e3cfb067445c0d3c9ad8284132aeb (diff)
Fix PHP 7.4 compatibility (#6038)
Some recent PRs have broken PHP 7.4 compatibility due to `mixed` typing.
Diffstat (limited to 'tests/app/Utils')
-rw-r--r--tests/app/Utils/dotpathUtilTest.php4
1 files changed, 2 insertions, 2 deletions
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<array{array<string,mixed>,string,mixed}>
+ * @return Traversable<array{array<string,mixed>,string,string}>
*/
public function provideJsonDots(): Traversable {
$json = <<<json
@@ -37,7 +37,7 @@ class dotpathUtilTest extends PHPUnit\Framework\TestCase {
* @dataProvider provideJsonDots
* @param array<string,mixed> $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);
}