-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
33 lines (27 loc) · 1.21 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
33 lines (27 loc) · 1.21 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
33
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 8
# 6.6.5 — pin the analysis target to PHP 8.3 (the new minimum).
# Without this, PHPStan infers the target from the runtime PHP
# version, which means moving the CI runner to 8.3 (also 6.6.5)
# would silently relax checks for 8.2- syntax. Pinning makes the
# gate target-version-aware regardless of runtime.
phpVersion: 80300
paths:
- includes/
excludePaths:
analyseAndScan:
# Markup-only partials included from a renderer's scope: no logic to
# type-check, and the variables they use are the caller's locals, which
# PHPStan cannot resolve across an include. Same carve-out as the
# coverage scope in phpunit.xml.dist — keep the two lists in step.
# NOTE: includes/self-scheduling/views is deliberately NOT here — it
# holds real logic and is analysed.
- includes/admin/views (?)
- includes/settings/views (?)
scanDirectories:
- vendor/php-stubs/wordpress-stubs/
bootstrapFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- phpstan-stubs.php