-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
44 lines (34 loc) · 1.46 KB
/
phpstan.neon
File metadata and controls
44 lines (34 loc) · 1.46 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
34
35
36
37
38
39
40
41
42
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 8
paths:
- telex.php
- uninstall.php
- includes/
- lib/
excludePaths:
- vendor/
- node_modules/
# Bootstrap defines plugin constants for analysis time.
bootstrapFiles:
- phpstan-bootstrap.php
# WP-CLI ships utility functions (format_items, make_progress_bar, …) as
# procedural code in utils.php that Composer does not autoload.
- vendor/wp-cli/wp-cli/php/utils.php
# WordPress stubs provide type information for core functions and classes.
stubFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
# PHPDoc types from WordPress stubs are not 100% accurate; disabling
# this prevents false-positive "always true/false" narrowing errors.
treatPhpDocTypesAsCertain: false
# Disable parallel analysis to avoid forked-worker OOM on CI runners.
# A single process with the full memory allocation is more reliable
# than splitting work across parallel workers that each compete for it.
parallel:
maximumNumberOfProcesses: 1
ignoreErrors:
# WP_CLI\NoOp uses __call() magic for tick()/finish(). PHPStan cannot
# statically resolve dynamic methods via __call on a union type.
- message: '#Call to an undefined method cli\\progress\\Bar\|WP_CLI\\NoOp::(tick|finish)\(\)\.#'
path: includes/class-telex-cli.php