forked from GoogleChromeLabs/pwa-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
21 lines (21 loc) · 887 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
includes:
# @see https://github.com/phpstan/phpstan-src/blob/b9f62d63f2deaa0a5e97f51073e41a422c48aa01/conf/bleedingEdge.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 5
treatPhpDocTypesAsCertain: false
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/pwa.php
- %currentWorkingDirectory%/wp-admin
- %currentWorkingDirectory%/wp-includes
- %currentWorkingDirectory%/bundled-theme-support
- %currentWorkingDirectory%/integrations
bootstrapFiles:
- %currentWorkingDirectory%/tests/static-analysis-stubs/wordpress-defines.stub
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
dynamicConstantNames:
- SCRIPT_DEBUG
ignoreErrors:
# Dynamically set attributes which will be eventually declared on WP_Query.
- '#^Access to an undefined property WP_Query::\$(is_offline|is_500)\.$#'