forked from duyler/openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
34 lines (31 loc) · 1.46 KB
/
Copy pathrector.php
File metadata and controls
34 lines (31 loc) · 1.46 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
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector;
use Rector\CodingStyle\Rector\Closure\ClosureDelegatingCallToFirstClassCallableRector;
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php84: true)
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
->withCodeQualityLevel(0)
->withSkip([
ArrowFunctionDelegatingCallToFirstClassCallableRector::class,
ClosureDelegatingCallToFirstClassCallableRector::class,
ClosureToArrowFunctionRector::class,
// PHPDoc-only @deprecated skips — the named-constructors below delegate to the
// deprecated constructors, so converting the PHPDoc to #[Deprecated] would
// trigger E_DEPRECATED on every internal call. ADRs:
// - adr-schema-constructor.md (Schema 11b)
// - adr-validator-signatures-and-dtos.md (ValidatorDependencies, ValidationContext 18)
DeprecatedAnnotationToDeprecatedAttributeRector::class => [
__DIR__ . '/src/Schema/Model/Schema.php',
__DIR__ . '/src/Validator/Validation/ValidatorDependencies.php',
__DIR__ . '/src/Validator/Error/ValidationContext.php',
],
]);