mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Fix parameter types
This commit is contained in:
parent
616a4cc457
commit
f0a67617bf
@ -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
|
||||
{
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user