From 464851cbea616cf34fe119c5de0dd132e3ef1a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 24 Jan 2022 22:51:15 +0100 Subject: [PATCH 1/2] Enhancement: Use Php74 rule set --- .php-cs-fixer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index e062e89..dc2e811 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -26,7 +26,7 @@ $license->save(); -$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php73($license->header()), [ +$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php74($license->header()), [ 'strict_comparison' => false, ]); From b739d3fbfbb5c64b046e6b69db817e79a8499a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 24 Jan 2022 22:51:53 +0100 Subject: [PATCH 2/2] Fix: Run 'make coding-standards' --- test/Util/Specification/Closure.php | 5 +---- test/Util/Specification/Pattern.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/Util/Specification/Closure.php b/test/Util/Specification/Closure.php index c88de59..a804d1c 100644 --- a/test/Util/Specification/Closure.php +++ b/test/Util/Specification/Closure.php @@ -18,10 +18,7 @@ */ final class Closure implements Specification { - /** - * @var \Closure - */ - private $closure; + private \Closure $closure; private function __construct(\Closure $closure) { diff --git a/test/Util/Specification/Pattern.php b/test/Util/Specification/Pattern.php index 4449d68..2a340c8 100644 --- a/test/Util/Specification/Pattern.php +++ b/test/Util/Specification/Pattern.php @@ -15,10 +15,7 @@ final class Pattern implements Specification { - /** - * @var string - */ - private $pattern; + private string $pattern; private function __construct(string $pattern) {