-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpstan.neon
20 lines (20 loc) · 979 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
parameters:
level: 6
paths:
- modules/os2forms_digital_post/
excludePaths:
# @see https://github.com/mglaman/drupal-check/issues/261#issuecomment-1030141772/
- vendor
- '*/node_modules/*'
ignoreErrors:
-
# Ignore some weird errors reported by PHPStan
# @todo Investigate further
messages:
# These errors may be related to classes that don't add anything to their base class (e.g. `class BrugerFlerRelationType extends FlerRelationType {}`)
- '#expects (DataGovDk\\Model\\Core\\)(.+)(\|null)?, \1\2\\\2AType given.#'
- '#expects (DigitalPost\\MeMo\\)(.+)(\|null)?, \1\2\\\2AType given.#'
- '#expects (Oio\\(?:.+\\)*)(.+)(\|null)?, \1\2Type given.#'
- '#expects array<(DigitalPost\\MeMo\\)(.+)>(\|null)?, array<int, \1\2\\\2AType> given.#'
- '#should return (DigitalPost\\MeMo\\)(.+) but returns \1\2\\\2AType.#'
- '#should return (Oio\\Fjernprint\\)(.+) but returns \1\2Type.#'