File tree Expand file tree Collapse file tree 5 files changed +58
-0
lines changed Expand file tree Collapse file tree 5 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ /.php-cs-fixer.cache
2+ /.php-cs-fixer.php
3+ /composer.lock
4+ /vendor /
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ $ finder = PhpCsFixer \Finder::create ()
6+ ->ignoreDotFiles (false )
7+ ->ignoreVCSIgnored (true )
8+ ->in (__DIR__ )
9+ ;
10+
11+ $ config = new PhpCsFixer \Config ();
12+ $ config
13+ ->setRiskyAllowed (true )
14+ ->setRules ([
15+ '@PhpCsFixer ' => true ,
16+ '@PhpCsFixer:risky ' => true ,
17+ ])
18+ ->setFinder ($ finder )
19+ ;
20+
21+ return $ config ;
Original file line number Diff line number Diff line change 1+ # Repo helps to reproduce reported bugs
2+
3+ Select branch and run ` composer repro ` .
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " keradus/php-cs-fixer-repro-cases" ,
3+ "require" : {
4+ "php" : " ^8.1" ,
5+ "friendsofphp/php-cs-fixer" : " 3.13.1"
6+ },
7+ "autoload" : {
8+ "psr-4" : {
9+ "keradus\\ PhpCsFixerReproCases\\ " : " src/"
10+ }
11+ },
12+ "scripts" : {
13+ "repro" : " ./vendor/bin/php-cs-fixer fix -vvv --dry-run --diff"
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace keradus \PhpCsFixerReproCases ;
4+
5+
6+ /**
7+ * @internal
8+ */
9+ class Example
10+ {
11+
12+
13+
14+ function foo () {}
15+ }
You can’t perform that action at this time.
0 commit comments