-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
25 lines (23 loc) · 852 Bytes
/
phpstan.neon
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
#$ vendor/bin/phpstan analyze
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- inc/
- plugin.php
excludePaths:
analyse:
- vendor/
# "/wp-content/" is created during composer install,
# when package is tested
# and not running within ft-platform
- wp-content/
- tests/
ignoreErrors:
# Find a nicer way instead of ignoring this Error on every ft-module
- '#Function Altis\\register_module not found\.#'
dynamicConstantNames:
# allow constants to have different values in different environments or than is coming from a PHPDoc.
# to prevent errors like: "Right side of && is always false."
# @see https://phpstan.org/config-reference#constants
- DOING_AJAX