Repository navigation
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
36 lines (33 loc) · 1.58 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
36 lines (33 loc) · 1.58 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
# Scanfully PHPStan baseline.
#
# Entries here mask errors that cannot be fixed (typically genuine WP stub gaps
# or WP runtime quirks). Adding an entry REQUIRES a paired comment block:
#
# # BASELINE: <one-sentence description of the WP-stub gap or WP runtime quirk>
# # Upstream: <link to upstream issue if one exists, otherwise omit this line>
# -
# message: '#...#'
# count: 1
# path: src/...
#
# Keep this file empty whenever possible.
parameters:
ignoreErrors:
# BASELINE: WC_Data_Store forwards method calls to the loaded data store via __call(), which the WooCommerce stubs do not declare.
-
message: '#^Call to an undefined method WC_Data_Store\:\:search_products\(\)\.$#'
identifier: method.notFound
count: 1
path: src/WooCheckout/Controller.php
# BASELINE: Defensive fallback to WC()->version for when WC_VERSION is not defined; the WooCommerce stubs type the property as a non-null string.
-
message: '#^Property WooCommerce\:\:\$version \(string\) on left side of \?\? is not nullable\.$#'
identifier: nullCoalesce.property
count: 1
path: src/WooCheckout/Controller.php
# BASELINE: Defensive fallback to WC()->version for when WC_VERSION is not defined; the WooCommerce stubs type the property as a non-null string.
-
message: '#^Property WooCommerce\:\:\$version \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: src/WooCheckout/Controller.php