-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
48 lines (45 loc) · 2.1 KB
/
Copy pathphpstan.neon
File metadata and controls
48 lines (45 loc) · 2.1 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
# Start command: composer update --classmap-authoritative && vendor/bin/phpstan analyze
includes:
- phpstan-baseline.neon # Baseline to ignore error temporary
# https://github.com/phpstan/phpstan/blob/master/conf/bleedingEdge.neon
# - vendor/phpstan/phpstan/conf/bleedingEdge.neon
# - phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
# - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
# - vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
parameters:
level: 9
inferPrivatePropertyTypeFromConstructor: true
stubFiles:
- tests/php/stubs/wordpress-override.php
scanFiles:
bootstrapFiles:
- %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
- tests/php/stubs/zip-ai-constants.php
- tests/php/stubs/zip-ai-stubs.php
paths:
- zip-ai.php
excludePaths:
- node_modules
# autoload_files:
# # Missing constants, function and class stubs
# - %currentWorkingDirectory%/tests/phpstan/bootstrap.php
# # Plugin stubs
# - %currentWorkingDirectory%/tests/phpstan/PLUGIN-stubs.php
# # Procedural code
# - %currentWorkingDirectory%/myplugin-functions.php
# autoload_directories:
# - %currentWorkingDirectory%/inc/
ignoreErrors:
# Uses func_get_args()
# - '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
# - '#^Function do_action invoked with [3456] parameters, 1-2 required\.$#'
# - '#^Function current_user_can invoked with 2 parameters, 1 required\.$#'
# - '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
# - '#^Function add_theme_support invoked with [2345] parameters, 1 required\.$#'
# - '#^Function wp_sprintf invoked with [23456] parameters, 1 required\.$#'
# https://core.trac.wordpress.org/ticket/43304
# - '/^Parameter #2 \$deprecated of function load_plugin_textdomain expects string, false given\.$/'
# WP-CLI accepts a class as callable
# - '/^Parameter #2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/'
# Please consider commenting ignores: issue URL or reason of ignore