Skip to content

Firefly III: a personal finances manager

Repair php cs fixer.

James Cole4edd9fe3da30
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