Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Apr 21, 2021
1 parent df53fc7 commit 2f2f7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/autoload.php
Expand Up @@ -16,7 +16,7 @@
declare(strict_types=1);

if (!defined('ROOT_PATH')) { // for PHPUnit process isolation
define('ROOT_PATH', realpath('.'));
define('ROOT_PATH', dirname(__DIR__));
}

// main autoload
Expand Down
6 changes: 2 additions & 4 deletions tests/phpunit-functions.php
Expand Up @@ -22,7 +22,7 @@
use JBZoo\SimpleTypes\Type\Money;

/**
* @param null $arg
* @param mixed $arg
* @return Money
*/
function val($arg = null): Money
Expand All @@ -35,10 +35,8 @@ function val($arg = null): Money
/**
* @param array $testList
*/
function batchEqualDumps($testList)
function batchEqualDumps(array $testList)
{
$testList = (array)$testList;

foreach ($testList as $test) {
$result = $test[0] ?? null;
$arg = $test[1] ?? null;
Expand Down

0 comments on commit 2f2f7ac

Please sign in to comment.