forked from pantheon-deprecated/example-wordpress-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
32 lines (26 loc) · 1.07 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
32 lines (26 loc) · 1.07 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
includes:
- phpstan-baseline.neon
parameters:
level: 5
paths:
- web/wp-content/mu-plugins/loader.php
- web/wp-content/themes/sage/app
- web/wp-content/themes/sage/config
- web/wp-content/themes/sage/functions.php
- web/wp-content/themes/sage/index.php
# Loads the Sage theme's composer autoloader so PHPStan can resolve
# Acorn (Roots\Acorn\*) and Laravel (Illuminate\*) types.
# Prerequisite: run `composer install` inside web/wp-content/themes/sage/
# before running phpstan. CI does this automatically in .ci/test/static/run.
bootstrapFiles:
- web/wp-content/themes/sage/vendor/autoload.php
# ACF Pro stubs so get_field(), the_field(), have_rows() etc. resolve.
scanFiles:
- vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php
excludePaths:
- web/wp/*
- web/wp-content/plugins/*
- web/wp-content/themes/twentytwentyfive/*
- vendor/*
# WordPress is loosely typed. Don't fail on PHPDoc types we can't fully trust.
treatPhpDocTypesAsCertain: false