Skip to content

Commit

Permalink
Fix parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Oct 13, 2022
1 parent 616a4cc commit f0a6761
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions tests/_support/Log/Handlers/TestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
10 changes: 2 additions & 8 deletions tests/system/Config/MimesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit f0a6761

Please sign in to comment.