-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
42 lines (41 loc) · 1.74 KB
/
Copy pathphpstan.neon
File metadata and controls
42 lines (41 loc) · 1.74 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
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
- phpstan-baseline.neon
parameters:
level: 8
paths:
- src/
scanDirectories:
- vendor/
treatPhpDocTypesAsCertain: false
stubFiles:
- phpstan-stubs/wpml.stub
- phpstan-stubs/acf.stub
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Offset .relative. does not exist on array#'
- '#Access to an undefined property Timber\\Term::#'
- '#Call to static method .* on an unknown class Timber#'
# WP-CLI is a separate package, not in the WordPress stubs (cf. Timber above).
- '#Call to static method .* on an unknown class WP_CLI#'
# Breeze_Cache_Preloader is the Breeze plugin's class, not a dependency
# of this package (cf. WP-CLI and Timber above).
- '#Call to static method .* on an unknown class Breeze_Cache_Preloader#'
# wp_get_attachment_metadata stub shape omits original_image; presence is
# guarded by `! empty( $metadata['original_image'] )` before the unset.
-
message: '#Cannot unset offset .original_image.#'
path: src/OriginalImagePruner.php
- '#expects (GdImage|resource), (resource|GdImage|\(GdImage\|false\)) given#'
- '#should return resource but returns#'
- '#Function icl_\w+ not found#'
- '#Action callback returns .* but should not return anything#'
- '#Cannot assign offset .* to string#'
# Timber MenuItem::$children may not exist on all menu items
- '#in isset\(\) is not nullable#'
-
message: '#is unused#'
path: src/Resizer.php
-
message: '#will always evaluate to true#'
path: src/Resizer.php