forked from ampproject/amp-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
27 lines (27 loc) · 1.38 KB
/
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
23
24
25
26
27
includes:
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 2
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/includes/
- %currentWorkingDirectory%/src/
autoload_files:
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/wordpress-defines.php
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/php-cli-tools.php
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/wp-cli.php
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/pwa.php
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/twentyseventeen.php
- %currentWorkingDirectory%/tests/php/static-analysis-stubs/legacy-i18n.php
- %currentWorkingDirectory%/vendor/autoload.php
- %currentWorkingDirectory%/amp.php
- %currentWorkingDirectory%/includes/amp-frontend-actions.php
- %currentWorkingDirectory%/includes/amp-post-template-functions.php
excludes_analyse:
# PHPStan cannot yet deal with view templates. See https://github.com/phpstan/phpstan/issues/351
- %currentWorkingDirectory%/includes/templates/amp-enabled-classic-editor-toggle.php
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'