Skip to content

Commit 80c2ff5

Browse files
committed
Update PHPStan config.
1 parent 26bdfc7 commit 80c2ff5

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

configs/grumphp-extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ parameters:
9191
- profile
9292
phpstan:
9393
configuration: .phpstan.qa-drupal.neon
94-
level: 8
94+
level: 4
9595
triggered_by:
9696
- php
9797
- inc

configs/grumphp-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ parameters:
110110
- profile
111111
phpstan:
112112
configuration: .phpstan.qa-drupal.neon
113-
level: 8
113+
level: 4
114114
force_patterns:
115115
- "#^web/(modules|themes|profiles)/custom/#"
116116
ignore_patterns:

configs/phpstan.neon

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,7 @@ parameters:
77
checkMissingIterableValueType: false
88
reportUnmatchedIgnoredErrors: false
99
ignoreErrors:
10-
- "#^Unsafe usage of new static\\(\\)#"
11-
- "#^\\Drupal calls should be avoided in classes#"
12-
- '#^(Function |Method Drupal\\[a-zA-Z0-9_\\]+::)[a-zA-Z0-9_]+\(\) has parameter .* no typehint specified#'
13-
- '#^(Function |Method Drupal\\[a-zA-Z0-9_\\]+::)[a-zA-Z0-9_]+\(\) has no return typehint specified#'
14-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) has parameter .* no value type specified#'
15-
path: *.module
16-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) return type has no value type specified#'
17-
path: *.module
18-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) has parameter .* no value type specified#'
19-
path: *.install
20-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) return type has no value type specified#'
21-
path: *.install
22-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) has parameter .* no value type specified#'
23-
path: *.theme
24-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) return type has no value type specified#'
25-
path: *.theme
26-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) has parameter .* no value type specified#'
27-
path: *.profile
28-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) return type has no value type specified#'
29-
path: *.profile
30-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) has parameter .* no value type specified#'
31-
path: *.inc
32-
- message: '#^Function [a-zA-Z0-9\\_]+\(\) return type has no value type specified#'
33-
path: *.inc
10+
- "#Unsafe usage of new static\\(\\)#"
11+
- "#\\Drupal calls should be avoided in classes#"
3412
excludes_analyse:
3513
- "*/node_modules/*"

0 commit comments

Comments
 (0)