Fix parameter types

This commit is contained in:
John Paul E. Balandan, CPA 2022-10-13 20:53:19 +08:00
parent 616a4cc457
commit f0a67617bf
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610
2 changed files with 5 additions and 8 deletions

View File

@ -46,6 +46,9 @@ class TestHandler extends \CodeIgniter\Log\Handlers\FileHandler
* 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
{

View File

@ -47,11 +47,8 @@ final class MimesTest extends CIUnitTestCase
/**
* @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 @@ final class MimesTest extends CIUnitTestCase
/**
* @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));
}