Repository navigation
Expand file tree
/
Copy pathpsalm.xml
More file actions
71 lines (67 loc) · 3.89 KB
/
Copy pathpsalm.xml
File metadata and controls
71 lines (67 loc) · 3.89 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
<?xml version="1.0"?>
<psalm
errorLevel="1"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedBaselineEntry="true"
findUnusedCode="false"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<!--
Suppression configured at psalm.xml level (per §2 php-best-practices.md:
«Допускается настройка в psalm.xml»). The two classes below are intentionally
retained as @deprecated legacy adapters in 0.6.0 — the wrapper RefResolvingSchemaValidator
transparently preserves their behaviour. Internal callers cannot migrate
without a larger parameter-validator refactor (planned for a follow-up task).
Removing the @deprecated tag is not an option because tooling (IDE quick-fix,
phpdoc generators) needs to surface the deprecation to direct callers.
New deprecations MUST NOT be added here without a parallel entry in CHANGELOG.md.
Schema::__construct / Schema::withOverrides: deprecated in 1.x via ADR
`.ai/reports/adr-schema-constructor.md` (task 11b §10). Replaced by
`Schema::fromConstraintGroups()` / `Schema::withOverrideGroups()`. The
3 internal callers of `withOverrides` (DocumentFingerprinter,
ValidatorCompiler, CompositionResolver) plus 35+ callers of `__construct`
are tracked for migration in a follow-up task; suppressing here keeps
Psalm green during the 1.x deprecation window pending 2.0 removal.
IDE / runtime `#[Deprecated]` attribute still surfaces the deprecation
to direct callers via PHPStorm / Intelephense / `E_DEPRECATED`.
ValidationContext::__construct / ValidationContext::create: deprecated in
1.x via ADR `.ai/reports/adr-validator-signatures-and-dtos.md` (task 18 §10).
Replaced by `ValidationContext::fromInit(ValidationContextInit $init)`. The
16 internal callers of `create()` (SchemaValidator, ItemsValidator,
PatternPropertiesValidator, etc.) plus test-suite callers of `__construct`
are tracked for migration in a follow-up task; suppressing here keeps
Psalm green during the 1.x deprecation window pending 2.0 removal.
IDE / runtime still surfaces the deprecation to direct external callers.
ValidatorDependencies::__construct: deprecated in 1.x via the same ADR
(task 18 §10). Replaced by `ValidatorDependencies::fromGroup()`. The
single internal caller in `OpenApiValidatorBuilder::build()` has been
migrated; suppression retained for any external integrators still using
the constructor during the 1.x deprecation window.
-->
<issueHandlers>
<DeprecatedClass>
<errorLevel type="suppress">
<referencedClass name="Duyler\OpenApi\Validator\SchemaValidator\SchemaValidator" />
<referencedClass name="Duyler\OpenApi\Validator\SchemaValidator\ValidatorDependencies" />
</errorLevel>
</DeprecatedClass>
<DeprecatedMethod>
<errorLevel type="suppress">
<referencedMethod name="Duyler\OpenApi\Schema\Model\Schema::__construct" />
<referencedMethod name="Duyler\OpenApi\Schema\Model\Schema::withOverrides" />
<referencedMethod name="Duyler\OpenApi\Validator\Error\ValidationContext::__construct" />
<referencedMethod name="Duyler\OpenApi\Validator\Error\ValidationContext::create" />
<referencedMethod name="Duyler\OpenApi\Validator\Validation\ValidatorDependencies::__construct" />
</errorLevel>
</DeprecatedMethod>
</issueHandlers>
</psalm>