-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
62 lines (55 loc) · 2.4 KB
/
phpstan.neon
File metadata and controls
62 lines (55 loc) · 2.4 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
parameters:
level: max
paths:
- src
- tests
excludePaths:
- tests/Application/*
bootstrapFiles:
- vendor/autoload.php
# Symfony Configuration
symfony:
consoleApplicationLoader: tests/PHPStan/console_application.php
# Doctrine Configuration
doctrine:
repositoryClass: Doctrine\ORM\EntityRepository
objectManagerLoader: tests/PHPStan/object_manager.php
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
# Our entity convention is "nullable PHP property, NOT NULL DB column" — the caller populates
# the field (factory, listener, controller) before flush. phpstan-doctrine's doctrine.columnType
# rule cannot express this split, so we silence it plugin-wide. See CLAUDE.md
# "Doctrine Entity Conventions" for the rationale.
ignoreErrors:
-
identifier: doctrine.columnType
path: src/Model/*
# Same rationale — plugin uses interfaces on relation properties (ProductInterface,
# QRCodeInterface, ...) whereas phpstan-doctrine resolves relations to the concrete
# app-level entity class at schema build time.
-
identifier: doctrine.associationType
path: src/Model/*
# UriFactory is deterministically polyglot per league/uri matrix: on v7
# `method_exists(Uri::class, 'new') === true` always (alreadyNarrowedType); on v6
# always false (impossibleType). PHPStan validates the dynamic dispatch against
# both possible method names from the ternary, so on v6 it complains that
# `Uri::new` does not exist (staticMethod.notFound) and falls the return back to
# mixed (return.type). All four are intentional artefacts of supporting both
# versions; reportUnmatchedIgnoredErrors=false keeps the inactive ones quiet on
# whichever matrix doesn't trigger them.
-
identifier: function.alreadyNarrowedType
path: src/Resolver/UriFactory.php
-
identifier: function.impossibleType
path: src/Resolver/UriFactory.php
-
identifier: staticMethod.dynamicName
path: src/Resolver/UriFactory.php
-
identifier: staticMethod.notFound
path: src/Resolver/UriFactory.php
-
identifier: return.type
path: src/Resolver/UriFactory.php