-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
38 lines (36 loc) · 2.05 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
35
36
37
38
#$ vendor/bin/phpstan analyze
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- inc/
- plugin.php
excludePaths:
analyseAndScan:
- wordpress/
analyse:
- vendor/
# "/wp-content/" is created during composer install,
# when package is tested
# and not running within ft-platform
- wp-content/
# - tests/
- inc/sites/wp_dropdown_posts/
ignoreErrors:
# Find a nicer way instead of ignoring this Error on every ft-module
- '#Function Altis\\register_module not found\.#'
- '#Function Figuren_Theater\\get_config not found\.#'
# TODO https://github.com/figuren-theater/ft-onboarding/issues/29 Remove hard dependencies onto deprecated__Figuren_Theater__v2
- '#Call to static method site\(\) on an unknown class Figuren_Theater\\FT\.#'
- '#Call to static method init\(\) on an unknown class Figuren_Theater\\FT_Query\.#'
- '#Call to static method id\(\) on an unknown class Figuren_Theater\\Network\\Users\\ft_bot\.#'
- '#Constant FT_CORESITES not found\.#'
- '#Access to constant NAME on an unknown class Figuren_Theater\\Network\\Admin_UI\\Color_Scheme\.#'
- '#Call to method run\(\) on an unknown class Figuren_Theater\\Network\\Sync\\Pull\.#'
- '#Instantiated class Figuren_Theater\\Network\\Sync\\Pull not found\.#'
- '#Instantiated class Figuren_Theater\\Network\\Post_Types\\Post_Type__ft_site not found\.#'
- '#Access to constant NAME on an unknown class Figuren_Theater\\Coresites\\Post_Types\\Post_Type__ft_level\.#'
- '#Call to static method post_id_exists\(\) on an unknown class Figuren_Theater\\inc\\helper\.#'
- '#Instantiated class Figuren_Theater\\inc\\Geo\\ft_geo_options_bridge not found\.#'
- '#Call to method update_option_ft_geo\(\) on an unknown class Figuren_Theater\\inc\\Geo\\ft_geo_options_bridge\.#'
- '#Constant Figuren_Theater\\FeaturesRepo\\TEMP_USER_META not found\.#'