From f0a67617bf38364f4f065371a6ad91340f4d759e Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Thu, 13 Oct 2022 20:53:19 +0800 Subject: [PATCH] Fix parameter types --- tests/_support/Log/Handlers/TestHandler.php | 3 +++ tests/system/Config/MimesTest.php | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/_support/Log/Handlers/TestHandler.php b/tests/_support/Log/Handlers/TestHandler.php index 6297aff42bd0..82c893e271e9 100644 --- a/tests/_support/Log/Handlers/TestHandler.php +++ b/tests/_support/Log/Handlers/TestHandler.php @@ -46,6 +46,9 @@ public function __construct(array $config) * If the handler returns false, then execution of handlers * will stop. Any handlers that have not run, yet, will not * be run. + * + * @param string $level + * @param string $message */ public function handle($level, $message): bool { diff --git a/tests/system/Config/MimesTest.php b/tests/system/Config/MimesTest.php index d9d27128142c..35d9c9819100 100644 --- a/tests/system/Config/MimesTest.php +++ b/tests/system/Config/MimesTest.php @@ -47,11 +47,8 @@ public function extensionsList() /** * @dataProvider extensionsList - * - * @param $ext - * @param mixed $mime */ - public function testGuessExtensionFromType($expected, $mime) + public function testGuessExtensionFromType(?string $expected, string $mime) { $this->assertSame($expected, Mimes::guessExtensionFromType($mime)); } @@ -84,11 +81,8 @@ public function mimesList() /** * @dataProvider mimesList - * - * @param mixed $expected - * @param mixed $ext */ - public function testGuessTypeFromExtension($expected, $ext) + public function testGuessTypeFromExtension(?string $expected, string $ext) { $this->assertSame($expected, Mimes::guessTypeFromExtension($ext)); }