From 0e84574edae2d7d5854823a7a7aec116e6f54c82 Mon Sep 17 00:00:00 2001 From: Anthony Birkett Date: Mon, 31 May 2021 14:15:01 +0100 Subject: [PATCH] Stop CS Fixer replacing self -> static on the unit tests. --- .php-cs-fixer.php | 1 + Tests/Tests.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 54d86a2..249ecb6 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -17,6 +17,7 @@ return (new PhpCsFixer\Config()) 'native_constant_invocation' => false, 'native_function_invocation' => false, 'php_unit_fqcn_annotation' => false, + 'php_unit_test_case_static_method_calls' => false, ]) ->setFinder(PhpCsFixer\Finder::create() ->exclude('vendor') diff --git a/Tests/Tests.php b/Tests/Tests.php index 9eb4df8..cabaad3 100644 --- a/Tests/Tests.php +++ b/Tests/Tests.php @@ -419,7 +419,7 @@ final class Tests extends TestCase $socket->queue($data); } - + return $sourceQuery; } }