From 4edd9fe3da304607948c957c0833c684833b0f3b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 5 Nov 2023 16:16:22 +0100 Subject: [PATCH] Repair php cs fixer. --- .ci/php-cs-fixer/.php-cs-fixer.php | 13 +++++++------ .ci/phpcs.sh | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.ci/php-cs-fixer/.php-cs-fixer.php b/.ci/php-cs-fixer/.php-cs-fixer.php index 0b8f9d46a0..d5ea759b52 100644 --- a/.ci/php-cs-fixer/.php-cs-fixer.php +++ b/.ci/php-cs-fixer/.php-cs-fixer.php @@ -36,12 +36,13 @@ $finder = PhpCsFixer\Finder::create() $config = new PhpCsFixer\Config(); return $config->setRules([ - '@PhpCsFixer:risky' => true, - // '@PSR12:risky' => true, - 'declare_strict_types' => true, - 'strict_param' => true, - 'array_syntax' => ['syntax' => 'short'], - 'native_function_invocation' => false, // annoying + '@PhpCsFixer:risky' => true, + '@PSR12:risky' => true, + 'declare_strict_types' => true, + 'strict_param' => true, + 'array_syntax' => ['syntax' => 'short'], + 'native_function_invocation' => false, // annoying 'php_unit_data_provider_name' => false, // bloody annoying long test names + 'static_lambda' => false, // breaks the Response macro for API's. ]) ->setFinder($finder); diff --git a/.ci/phpcs.sh b/.ci/phpcs.sh index 22852040f5..c486849052 100755 --- a/.ci/phpcs.sh +++ b/.ci/phpcs.sh @@ -29,7 +29,7 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # cp .ci/.env.ci .env OUTPUT_FORMAT=txt -EXTRA_PARAMS="" +EXTRA_PARAMS="-v" if [[ $GITHUB_ACTIONS = "true" ]] then