forked from rhubarbgroup/redis-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
22 lines (22 loc) · 934 Bytes
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
includes:
- php-tools/vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
dynamicConstantNames:
- WP_REDIS_SERVERS
bootstrapFiles:
- tests/phpstan/bootstrap.php
# Made with generate-stubs --classes --interfaces --traits --out=query-monitor-stubs.php classes/ output/
- tests/phpstan/query-monitor-stubs.php
- php-tools/vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
paths:
- includes/
- php-tools/object-cache.php
excludes_analyse:
- includes/object-cache.php
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
# https://github.com/phpstan/phpstan/issues/3688
- '#^Parameter \#1 \$name of class RedisArray constructor expects string, array<int, mixed> given\.$#'