-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
24 lines (24 loc) · 999 Bytes
/
phpstan.neon.dist
File metadata and controls
24 lines (24 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- phpstan-baseline.neon
parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- courier-notices.php
- includes/
bootstrapFiles:
- tools/phpstan/constants.php
scanDirectories:
- vendor/wp-phpunit/wp-phpunit/
scanFiles:
# These are needed due config.platform.php being 7.2 in composer.json and wordpress-stubs not including polyfills.
# See <https://github.com/php-stubs/wordpress-stubs/issues/100>.
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_contains.php
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_starts_with.php
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_ends_with.php
strictRules:
strictArrayFilter: false
featureToggles:
# Ignore errors related to the plugin not running from inside a WP environment, so paths like ABSPATH . WPINC don't resolve.
requireFileExists: false