From 45c5bafa4ff1d68a3bf5c7295c94e074b109312c Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Sat, 22 Aug 2020 01:13:53 +0900 Subject: [PATCH] Remove more types --- .php_cs.dist | 2 +- tests/Test.php | 2 +- tests/Tester.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 2e88449..75de2fe 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -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, diff --git a/tests/Test.php b/tests/Test.php index f1d2fda..571bf5b 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -41,7 +41,7 @@ public function testExample() $this->assertTrue(true); } - private static function add(string $methodName) + private static function add($methodName) { self::$callSequence[] = $methodName; } diff --git a/tests/Tester.php b/tests/Tester.php index 6150419..67c172b 100644 --- a/tests/Tester.php +++ b/tests/Tester.php @@ -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) ); }