-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathrector.php
More file actions
25 lines (23 loc) · 783 Bytes
/
Copy pathrector.php
File metadata and controls
25 lines (23 loc) · 783 Bytes
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
<?php
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
return RectorConfig::configure()
->withPaths([
__DIR__.'/src',
__DIR__.'/tests',
])
->withSkip([
// The values of a gateway's callback are passed around as they come in,
// where a numeric string standing in for a number is normal. Turning
// strict types on would have to happen together with the drivers, which
// live in the `shetabit/multipay` package.
SafeDeclareStrictTypesRector::class,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
privatization: true,
earlyReturn: true,
)
->withPhpSets();