Skip to content

Commit

Permalink
Remove more types
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Aug 21, 2020
1 parent 4d42265 commit 45c5baf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ return PhpCsFixer\Config::create()
'phpdoc_to_comment' => false,
'strict_comparison' => true,
'comment_to_phpdoc' => true,
'native_function_invocation' => true,
'native_function_invocation' => false,
'php_unit_test_case_static_method_calls' => false,
'yoda_style' => true,

Expand Down
2 changes: 1 addition & 1 deletion tests/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testExample()
$this->assertTrue(true);
}

private static function add(string $methodName)
private static function add($methodName)
{
self::$callSequence[] = $methodName;
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ public function endTestSuite()
$this->executeAfterLastTest();
}

private static function assertSame(array $expected, array $actual)
private static function assertSame($expected, $actual)
{
if ($expected === $actual) {
return;
}

if (\class_exists(Differ::class)) {
if (class_exists(Differ::class)) {
echo "\n";
$differ = new Differ();
echo $differ->diff(
\var_export($actual, true),
\var_export($expected, true)
var_export($actual, true),
var_export($expected, true)
);
}

Expand Down

0 comments on commit 45c5baf

Please sign in to comment.