Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/test-rector-rules.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Rector Rules Test

on:
push:
Expand Down Expand Up @@ -31,7 +31,10 @@ jobs:

- name: Install Rector & PHPStan
run: |
composer update phpunit/phpunit:^11 brianium/paratest -W

composer bin phpstan install
composer bin rector install

- name: Test
run: vendor/bin/phpunit -c phpunit-rector.xml.dist
Expand Down
10 changes: 9 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
\file_get_contents('https://raw.githubusercontent.com/zenstruck/.github/main/.php-cs-fixer.dist.php')
);

/** @var PhpCsFixer\Config $csFixerConfig */
$csFixerConfig = require $file;
$csFixerConfig->setFinder(
$csFixerConfig->getFinder()
->in(__DIR__.'/utils')
->in(__DIR__.'/config')
);

try {
return require $file;
return $csFixerConfig;
} finally {
\unlink($file);
}
5 changes: 5 additions & 0 deletions bin/tools/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.89"
}
}
Loading