Repair php cs fixer.

This commit is contained in:
James Cole
2023-11-05 16:16:22 +01:00
parent 5b05fb07ae
commit 4edd9fe3da
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);