forked from phpseclib/bcmath_compat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
24 lines (21 loc) · 838 Bytes
/
rector.php
File metadata and controls
24 lines (21 loc) · 838 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/lib',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php81: true)
->withComposerBased(phpunit: true)
->withPreparedSets(typeDeclarations: true, deadCode: true, codeQuality: true)
->withSkip([
UnwrapFutureCompatibleIfPhpVersionRector::class,
// Tests rely on implicit int/bool→string coercion to verify native bcmath
// extension compatibility; declaring strict types would break them.
SafeDeclareStrictTypesRector::class,
__DIR__ . '/tests/php-src',
]);