-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathphpstan.neon
More file actions
35 lines (30 loc) · 1.14 KB
/
phpstan.neon
File metadata and controls
35 lines (30 loc) · 1.14 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
##
# Configuration file for PHPStan static code checking, see https://phpstan.org .
#
parameters:
level: 3
paths:
- src
- tests
excludePaths:
- vendor/*
ignoreErrors:
-
# Tests and data providers do not require parameter docblocks, so the
# iterable type cannot always be specified.
message: '#.*no value type specified in iterable type array.#'
path: tests/*
reportUnmatched: false
-
# The driver is a thin wrapper around Drupal's global service container;
# static \Drupal:: calls are the intended access pattern here.
identifier: globalDrupalDependencyInjection.useDependencyInjection
path: src/*
-
# entity_test_create_bundle() is deprecated in Drupal 11.2 in favour of
# EntityTestHelper::createBundle(); kept as a fallback for Drupal 10 and
# earlier 11.x where the helper class does not yet exist.
message: '#Call to deprecated function entity_test_create_bundle\(\).*#'
paths:
- tests/Drupal/Tests/Driver/Kernel/Core/Field/FieldHandlerKernelTestBase.php
- tests/Drupal/Tests/Driver/Kernel/Core/CoreEntityMethodsKernelTest.php