forked from prodeveloper/social-share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
29 lines (23 loc) · 806 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Core\Configuration\Option;
use Rector\Laravel\Set\LaravelSetList;
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$parameters = $rectorConfig->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/views',
]);
$parameters->set(Option::SKIP, [
StaticCallOnNonStaticToInstanceCallRector::class => [
__DIR__ . '/tests/ShareTest.php',
],
]);
$rectorConfig->import(LaravelSetList::LARAVEL_60);
$rectorConfig->import(LevelSetList::UP_TO_PHP_74);
};