-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrector.php
More file actions
73 lines (69 loc) · 2.63 KB
/
Copy pathrector.php
File metadata and controls
73 lines (69 loc) · 2.63 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* This file is part of the mimmi20/mezzio-generic-authorization package.
*
* Copyright (c) 2020-2026, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
use Rector\DeadCode\Rector\StmtsAwareInterface\RemoveDeadInstanceOfAssertRector;
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector;
use Rector\PHPUnit\CodeQuality\Rector\FuncCall\AssertFuncCallToPHPUnitAssertRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpVersion(PhpVersion::PHP_83)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
typeDeclarationDocblocks: true,
naming: true,
namedArgs: true,
instanceOf: true,
if: true,
earlyReturn: true,
phpunitCodeQuality: true,
phpunitNarrowAsserts: true,
phpunitMockToStub: true,
)
->withPhpSets(php83: true)
->withAttributesSets(phpunit: true)
->withComposerBased(phpunit: true)
->withSkip([
RemoveDeadInstanceOfRector::class,
RemoveAlwaysTrueIfConditionRector::class,
RemoveParentCallWithoutParentRector::class,
AnnotationToAttributeRector::class,
RemoveDeadInstanceOfAssertRector::class,
PreferPHPUnitThisCallRector::class,
AssertFuncCallToPHPUnitAssertRector::class,
YieldDataProviderRector::class,
RenamePropertyToMatchTypeRector::class,
RenameParamToMatchTypeRector::class,
ExplicitBoolCompareRector::class,
NoSetupWithParentCallOverrideRector::class,
])
->withSkip([
ReadOnlyPropertyRector::class => [
__DIR__ . '/src/LaminasRbacFactory.php',
],
])
->withoutParallel()
->withMemoryLimit('2048M');