Skip to content

Commit 3484d9a

Browse files
committed
Init commit
0 parents  commit 3484d9a

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.php-cs-fixer.cache
2+
/.php-cs-fixer.php
3+
/composer.lock
4+
/vendor/

.php-cs-fixer.dist.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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;

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Repo helps to reproduce reported bugs
2+
3+
Select branch and run `composer repro`.

composer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

src/Example.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace keradus\PhpCsFixerReproCases;
4+
5+
6+
/**
7+
* @internal
8+
*/
9+
class Example
10+
{
11+
12+
13+
14+
function foo() {}
15+
}

0 commit comments

Comments
 (0)