Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b802463

Browse files
authored
chore: some housekeeping (#1014)
1 parent 90ba647 commit b802463

9 files changed

Lines changed: 2913 additions & 16 deletions

File tree

.github/workflows/test-rector-rules.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Rector Rules Test
22

33
on:
44
push:
@@ -31,7 +31,10 @@ jobs:
3131

3232
- name: Install Rector & PHPStan
3333
run: |
34+
composer update phpunit/phpunit:^11 brianium/paratest -W
35+
3436
composer bin phpstan install
37+
composer bin rector install
3538
3639
- name: Test
3740
run: vendor/bin/phpunit -c phpunit-rector.xml.dist

.php-cs-fixer.dist.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
\file_get_contents('https://raw.githubusercontent.com/zenstruck/.github/main/.php-cs-fixer.dist.php')
88
);
99

10+
/** @var PhpCsFixer\Config $csFixerConfig */
11+
$csFixerConfig = require $file;
12+
$csFixerConfig->setFinder(
13+
$csFixerConfig->getFinder()
14+
->in(__DIR__.'/utils')
15+
->in(__DIR__.'/config')
16+
);
17+
1018
try {
11-
return require $file;
19+
return $csFixerConfig;
1220
} finally {
1321
\unlink($file);
1422
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"friendsofphp/php-cs-fixer": "^3.89"
4+
}
5+
}

0 commit comments

Comments
 (0)