Repair php cs fixer.

This commit is contained in:
James Cole 2023-11-05 16:16:22 +01:00
parent 5b05fb07ae
commit 4edd9fe3da
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 8 additions and 7 deletions

View File

@ -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);

View File

@ -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