in(__DIR__.DIRECTORY_SEPARATOR.'src') ->in(__DIR__.DIRECTORY_SEPARATOR.'tests') ->append(['.php_cs.dist']); $rules = [ '@Symfony' => true, 'declare_strict_types' => true, 'void_return' => true, 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'], ]; return \PhpCsFixer\Config::create() ->setRules($rules) ->setFinder($finder);