reio Just now it stopped me from saving php-cs-fixer config file. This is probably the smallest file I've seen it happen on. :)
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = (new Finder())
->in(__DIR__)
->ignoreVCSIgnored(true)
->notPath([
'config/bundles.php',
'config/reference.php',
'tests/Fixtures/PHPStan',
])
;
return (new Config())
->setRules([
'@PhpCsFixer' => true,
'blank_line_before_statement' => false,
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
'concat_space' => ['spacing' => 'one'],
'explicit_string_variable' => false,
'operator_linebreak' => false,
'ordered_types' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_to_comment' => [
'ignored_tags' => [
'phpstan-assert',
'phpstan-assert-if-true',
'phpstan-assert-if-false',
'phpstan-import-type',
'psalm-suppress',
'var',
],
],
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'return_assignment' => false,
'single_line_comment_style' => ['comment_types' => ['hash']],
'single_quote' => false,
'string_implicit_backslashes' => false,
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays', 'match', 'parameters']],
'yoda_style' => false,
])
->setFinder($finder)
->setParallelConfig(ParallelConfigFactory::detect())
;