Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
49 lines (42 loc) · 2.07 KB
/
Copy pathphpstan.neon
File metadata and controls
49 lines (42 loc) · 2.07 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
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 value is populated
# (form, factory, calculator) before flush. The plugin also types relation properties with
# interfaces (ProductInterface) while phpstan-doctrine resolves relations to the concrete
# app-level entity class. phpstan-doctrine's rules cannot express either split, so we silence
# them for the model layer only.
ignoreErrors:
-
identifier: doctrine.columnType
path: src/Model/*
-
identifier: doctrine.associationType
path: src/Model/*
# symfony/service-contracts only made ServiceProviderInterface generic in a later 6.4.x
# patch; on the lowest-deps matrix the <mixed> generic is (correctly) flagged. The generic
# is right on the versions we ship against, so the annotation stays and this is silenced.
-
message: '#generic type Symfony\\Contracts\\Service\\ServiceProviderInterface<mixed> but interface Symfony\\Contracts\\Service\\ServiceProviderInterface is not generic#'
path: src/Rollup/Rollup.php
# Older Twig versions type the TwigFunction $callable parameter as a strict `callable`,
# which rejects the lazy [runtime-class, method] array form. Newer Twig widens it. The
# array form is the documented lazy-runtime pattern, so silence it on the lowest matrix.
-
message: '#Parameter \#2 \$callable of class Twig\\TwigFunction constructor expects#'
path: src/Twig/CompletenessDisplayExtension.php