Skip to content

Commit f0a6761

Browse files
committed
Fix parameter types
1 parent 616a4cc commit f0a6761

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

tests/_support/Log/Handlers/TestHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public function __construct(array $config)
4646
* If the handler returns false, then execution of handlers
4747
* will stop. Any handlers that have not run, yet, will not
4848
* be run.
49+
*
50+
* @param string $level
51+
* @param string $message
4952
*/
5053
public function handle($level, $message): bool
5154
{

tests/system/Config/MimesTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ public function extensionsList()
4747

4848
/**
4949
* @dataProvider extensionsList
50-
*
51-
* @param $ext
52-
* @param mixed $mime
5350
*/
54-
public function testGuessExtensionFromType($expected, $mime)
51+
public function testGuessExtensionFromType(?string $expected, string $mime)
5552
{
5653
$this->assertSame($expected, Mimes::guessExtensionFromType($mime));
5754
}
@@ -84,11 +81,8 @@ public function mimesList()
8481

8582
/**
8683
* @dataProvider mimesList
87-
*
88-
* @param mixed $expected
89-
* @param mixed $ext
9084
*/
91-
public function testGuessTypeFromExtension($expected, $ext)
85+
public function testGuessTypeFromExtension(?string $expected, string $ext)
9286
{
9387
$this->assertSame($expected, Mimes::guessTypeFromExtension($ext));
9488
}

0 commit comments

Comments
 (0)