Skip to content

Commit cda190f

Browse files
committed
AC-1740: Add rectorphp as a dependency to magento-coding-standard
1 parent 01e243e commit cda190f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ jobs:
9191
run: composer install
9292

9393
- name: Run rector
94-
run: vendor/bin/rector process . --dry-run
94+
run: vendor/bin/rector process --dry-run

rector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
declare(strict_types=1);
44

55
use Rector\Core\Configuration\Option;
6-
use Rector\Php74\Rector\Property\TypedPropertyRector;
6+
use Rector\Core\ValueObject\PhpVersion;
77
use Rector\Set\ValueObject\SetList;
88
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
99

1010
return static function (ContainerConfigurator $containerConfigurator): void {
1111
// get parameters
1212
$parameters = $containerConfigurator->parameters();
1313
$parameters->set(Option::PATHS, [
14-
__DIR__ . '/src'
14+
__DIR__ . '/Magento2',
15+
__DIR__ . '/Magento2Framework',
16+
__DIR__ . '/PHP_CodeSniffer',
1517
]);
18+
$parameters->set(Option::BOOTSTRAP_FILES, [__DIR__ . '/vendor/squizlabs/php_codesniffer/autoload.php']);
1619

1720
// Define what rule sets will be applied
1821
$containerConfigurator->import(SetList::PHP_80);

0 commit comments

Comments
 (0)