Skip to content

Commit fdcfb90

Browse files
authored
Cleanups (#760)
1 parent e8cf875 commit fdcfb90

File tree

7 files changed

+61
-7
lines changed

7 files changed

+61
-7
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"symbol-whitelist": [
3+
"PhpCsFixer\\DocBlock\\Annotation",
4+
"PhpCsFixer\\DocBlock\\DocBlock",
5+
"PhpCsFixer\\DocBlock\\Line",
6+
"PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolver",
7+
"PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolverInterface",
8+
"PhpCsFixer\\FixerConfiguration\\FixerOptionBuilder",
9+
"PhpCsFixer\\FixerDefinition\\CodeSample",
10+
"PhpCsFixer\\FixerDefinition\\FixerDefinition",
11+
"PhpCsFixer\\FixerDefinition\\FixerDefinitionInterface",
12+
"PhpCsFixer\\FixerDefinition\\VersionSpecification",
13+
"PhpCsFixer\\FixerDefinition\\VersionSpecificCodeSample",
14+
"PhpCsFixer\\Fixer\\Casing\\ClassReferenceNameCasingFixer",
15+
"PhpCsFixer\\Fixer\\ConfigurableFixerInterface",
16+
"PhpCsFixer\\Fixer\\DeprecatedFixerInterface",
17+
"PhpCsFixer\\Fixer\\FixerInterface",
18+
"PhpCsFixer\\Fixer\\Import\\NoUnusedImportsFixer",
19+
"PhpCsFixer\\Fixer\\WhitespacesAwareFixerInterface",
20+
"PhpCsFixer\\Indicator\\PhpUnitTestCaseIndicator",
21+
"PhpCsFixer\\Preg",
22+
"PhpCsFixer\\Tokenizer\\Analyzer\\Analysis\\NamespaceUseAnalysis",
23+
"PhpCsFixer\\Tokenizer\\Analyzer\\ArgumentsAnalyzer",
24+
"PhpCsFixer\\Tokenizer\\Analyzer\\BlocksAnalyzer",
25+
"PhpCsFixer\\Tokenizer\\Analyzer\\CommentsAnalyzer",
26+
"PhpCsFixer\\Tokenizer\\Analyzer\\FunctionsAnalyzer",
27+
"PhpCsFixer\\Tokenizer\\Analyzer\\NamespacesAnalyzer",
28+
"PhpCsFixer\\Tokenizer\\Analyzer\\NamespaceUsesAnalyzer",
29+
"PhpCsFixer\\Tokenizer\\Analyzer\\WhitespacesAnalyzer",
30+
"PhpCsFixer\\Tokenizer\\CT",
31+
"PhpCsFixer\\Tokenizer\\Token",
32+
"PhpCsFixer\\Tokenizer\\Tokens",
33+
"PhpCsFixer\\Tokenizer\\TokensAnalyzer",
34+
"PhpCsFixer\\Utils",
35+
"PhpCsFixer\\WhitespacesFixerConfig",
36+
"array",
37+
"bool",
38+
"false",
39+
"int",
40+
"null",
41+
"self",
42+
"static",
43+
"string",
44+
"true",
45+
"void"
46+
],
47+
"php-core-extensions": [
48+
"Core",
49+
"pcre",
50+
"SPL",
51+
"standard"
52+
]
53+
}

.dev-tools/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@composer validate --strict --working-dir=..",
3838
"@composer normalize --dry-run ../composer.json",
3939
"@composer normalize --dry-run",
40-
"composer-require-checker check ../composer.json",
40+
"composer-require-checker check ../composer.json --config-file composer-require-checker.json",
4141
"phpcs",
4242
"php-cs-fixer fix --ansi --config=../.php-cs-fixer.php --diff --dry-run --verbose",
4343
"types-checker --autoloader=../vendor/autoload.php src ../src ../tests",

.dev-tools/readme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
require_once __DIR__ . '/../vendor/autoload.php';
14+
require_once __DIR__ . '/vendor/autoload.php';
1415

1516
$application = new Symfony\Component\Console\Application();
1617
$command = new PhpCsFixerCustomFixersDev\Readme\ReadmeCommand('readme');

.dev-tools/src/Readme/php-cs-fixer.config.after.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
return PhpCsFixer\Config::create()
2+
return (new PhpCsFixer\Config)
33
->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers())
44
->setRules([
55
'@PSR2' => true,

.dev-tools/src/Readme/php-cs-fixer.config.before.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
return PhpCsFixer\Config::create()
2+
return (new PhpCsFixer\Config)
33
->setRules([
44
'@PSR2' => true,
55
'array_syntax' => ['syntax' => 'short'],

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
php-version: '8.1'
4141
install-fixer-from-master-branch: true
4242
description: 'with PHP CS Fixer from master'
43-
- os: ubuntu-latest
44-
php-version: '8.2'
45-
composer-flags: '--ignore-platform-reqs'
4643
- description: on macOS
4744
os: macos-latest
4845
php-version: '8.1'
4946
- description: on Windows
5047
os: windows-latest
5148
php-version: '8.1'
49+
- os: ubuntu-latest
50+
php-version: '8.2'
51+
composer-flags: '--ignore-platform-reqs'
5252
runs-on: ${{ matrix.os }}
5353
timeout-minutes: 10
5454
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ composer require --dev kubawerlos/php-cs-fixer-custom-fixers
2424
In your PHP CS Fixer configuration register fixers and use them:
2525
```diff
2626
<?php
27-
return PhpCsFixer\Config::create()
27+
return (new PhpCsFixer\Config)
2828
+ ->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers())
2929
->setRules([
3030
'@PSR2' => true,

0 commit comments

Comments
 (0)