From e8e53bd176bd818c706d48078317d6f7883bffc0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Sep 2024 20:45:38 +0300 Subject: [PATCH] update testings and added rule static_lambda in php-cs-fixer --- .github/workflows/tests.yml | 2 +- .php-cs-fixer.dist.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b69da09..d8074d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -99,7 +99,7 @@ jobs: with: composer-options: --optimize-autoloader - run: composer unused - coding-standards: + linter: runs-on: ubuntu-latest strategy: matrix: diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index a70f26b..29cde25 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -20,6 +20,9 @@ $config = (new Config()) ->setFinder($finder) + ->setRules([ + 'static_lambda' => true, + ]) ->setCacheFile(__DIR__ . '/var/.php-cs-fixer.cache'); (new PhpCsFixerCodingStandard())->applyTo($config);