Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
67 lines (58 loc) 路 2.41 KB
/
Copy pathphpstan.neon
File metadata and controls
67 lines (58 loc) 路 2.41 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
parameters:
level: 7
phpVersion: 80300
paths:
- docs.php
- scripts
- src
- tests/behat/bootstrap
- tests/behat/fixtures_drupal/d11/web/modules/custom
- tests/behat/fixtures_drupal/d12/web/modules/custom
- tests/phpunit/src
excludePaths:
- vendor/*
- node_modules/*
- tests/behat/bootstrap/BehatCliContext.php
- tests/behat/bootstrap/BehatCliTrait.php
# https://github.com/phpstan/phpstan/discussions/11362
- tests/behat/fixtures_drupal/d11/web/modules/custom/mysite_core/src/Time/Time.php
- tests/behat/fixtures_drupal/d12/web/modules/custom/mysite_core/src/Time/Time.php
scanFiles:
- vendor/behat/behat/bin/behat
scanDirectories:
- vendor/phpunit/phpunit
- vendor/alexskrypnyk/phpunit-helpers
- tests/phpunit/fixtures/docs
# Prefer type checking over docblocks, which can easily become outdated.
treatPhpDocTypesAsCertain: false
ignoreErrors:
# The backend layer boots Drupal and then reaches into the container it
# booted. Its classes are constructed before that container exists, so
# they use static \Drupal:: calls instead of injected services.
-
identifier: globalDrupalDependencyInjection.useDependencyInjection
path: src/Backend/*
-
messages:
- '#.*no value type specified in iterable type.*#'
# The classes declaring these methods are not loaded during unit tests.
- '#.*Call to an undefined method.*Session\(\).*#'
- '#.*Call to an undefined method.*getMinkParameter\(\).*#'
- '#.*Call to an undefined method.*getDriver\(\).*#'
- '#.*Cannot call method.*getWebDriverSession\(\).*#'
- '#.*Cannot call method.*getClient\(\).*#'
- '#.*Cannot call method.*getCurrentUrl\(\).*#'
paths:
# Fixtures have hook implementations that do not have full type
# information specified in comment docblocks.
- tests/behat/fixtures_drupal/d11/web/modules/custom
- tests/behat/fixtures_drupal/d12/web/modules/custom
# Tests and data providers need no parameter docblocks, so their
# parameter types cannot be specified.
- tests/phpunit/*
reportUnmatched: false
# @see https://github.com/mglaman/phpstan-drupal/issues/825
-
messages:
- '#Call to method Drupal\\Core\\Entity\\Query\\QueryInterface::accessCheck\(\) with false will always evaluate to true.#'
reportUnmatched: false