-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
34 lines (33 loc) · 1.63 KB
/
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
26
27
28
29
30
31
32
33
34
#$ vendor/bin/phpstan analyze
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- inc/
- plugin.php
excludePaths:
analyse:
# TODO #12 Remove ugly dependencies to old spaghetti code
# Error message "Class Figuren_Theater\Options\Collection extends unknown class ...
# ... Figuren_Theater\SiteParts\SitePartsCollectionAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-collection.php
# Error message "Class Figuren_Theater\Options\Proxied_Collection extends unknown class ...
# ... Figuren_Theater\SiteParts\ProxiedSitePartsCollectionAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-proxied-collection.php
# Error message "Class Figuren_Theater\Options\Manager extends unknown class ...
# ... Figuren_Theater\SiteParts\SitePartsManagerAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-manager.php
- vendor/
# "/wp-content/" is created during composer install,
# when package is tested
# and not running within ft-platform
- wp-content/
- tests/
ignoreErrors:
# TODO #12 Remove ugly dependencies to old spaghetti code
- '#Call to static method add\(\) on an unknown class Figuren_Theater\\API\.#'
- '#Call to static method get\(\) on an unknown class Figuren_Theater\\API\.#'
- '#Call to method set_Options_Manager\(\) on an unknown class Figuren_Theater\\ProxiedSite\.#'