Skip to content

Commit 5ac750d

Browse files
committed
Fix CS-Fixer settings #10
1 parent abe2e59 commit 5ac750d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.cs.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
// custom rules
1313
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'], // psr-5
1414
'phpdoc_to_comment' => false,
15+
'no_superfluous_phpdoc_tags' => false,
1516
'array_indentation' => true,
1617
'array_syntax' => ['syntax' => 'short'],
1718
'cast_spaces' => ['space' => 'none'],
1819
'concat_space' => ['spacing' => 'one'],
1920
'compact_nullable_typehint' => true,
2021
'declare_equal_normalize' => ['space' => 'single'],
2122
'increment_style' => ['style' => 'post'],
22-
'list_syntax' => ['syntax' => 'long'],
23+
'list_syntax' => ['syntax' => 'short'],
2324
'no_short_echo_tag' => true,
2425
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
2526
'phpdoc_align' => false,
@@ -33,6 +34,7 @@
3334
'sort_algorithm' => 'alpha',
3435
'imports_order' => ['class', 'const', 'function']
3536
],
37+
'single_line_throw' => false,
3638
])
3739
->setFinder(PhpCsFixer\Finder::create()
3840
->in(__DIR__ . '/src')

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ jobs:
3737
- name: Install dependencies
3838
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
3939

40+
- name: Set CS-Fixer ignore env
41+
run: set PHP_CS_FIXER_IGNORE_ENV=1
42+
4043
- name: Run test suite
4144
run: composer check

0 commit comments

Comments
 (0)