-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpstan.neon.dist
26 lines (25 loc) · 1.04 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
#$ composer update --optimize-autoloader
#$ vendor/bin/phpstan analyze
includes:
# @see https://github.com/phpstan/phpstan/blob/master/conf/bleedingEdge.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
parallel:
maximumNumberOfProcesses: 1
level: 4
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/src/
excludes_analyse:
- %currentWorkingDirectory%/src/I18N/
- %currentWorkingDirectory%/src/Settings/view/
bootstrapFiles:
# Procedural code
#- %currentWorkingDirectory%/functions/autoload.php
ignoreErrors:
# Uses func_get_args()
#- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
#- '#Access to an undefined property ItalyStrap\\Config\\Config::\$[a-zA-Z0-9_]+#'
#- '#Access to an undefined property ItalyStrap\\Config\\ConfigInterface::\$[a-zA-Z0-9_]+#'
#- "#Cannot access offset '[a-zA-Z_]+' on [a-zCIS]+#"