-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathphpstan.neon.dist
64 lines (62 loc) · 1.99 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
-
class: Google\Web_Stories\PHPStan\ServiceContainerDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: Google\Web_Stories\PHPStan\ServicesDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
level: 9
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
-
identifier: missingType.generics
-
identifier: requireOnce.fileNotFound
-
identifier: require.fileNotFound
-
message: '/^Parameter #2 \$args of method WP_Customize_Manager::add_setting\(\)/'
path: includes/Admin/Customizer.php
-
message: '/\(int\) does not accept int\|WP_Error\.$/'
path: tests/phpunit/integration/tests
-
message: '/^Call to deprecated method _get_first_available_transport\(\)/'
path: includes/REST_API/Hotlinking_Controller.php
paths:
- includes/
- tests/phpunit/integration/includes
- tests/phpunit/integration/tests
- tests/phpunit/unit/includes/
- tests/phpunit/unit/tests/
- uninstall.php
excludePaths:
- includes/vendor/*
- includes/polyfills/*
scanDirectories:
- third-party/
scanFiles:
- web-stories.php
- vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
- tests/phpstan/stubs/amp.php
- tests/phpstan/stubs/wordpress-seo.php
- tests/phpstan/stubs/wp-cli.php
- tests/phpstan/stubs/wpdotcom.php
stubFiles:
- tests/phpstan/stubs/wordpress-override.php
bootstrapFiles:
- tests/phpstan/bootstrap.php
- third-party/vendor/ampproject/amp-wp/includes/sanitizers/class-amp-base-sanitizer.php
- third-party/vendor/ampproject/amp-wp/includes/sanitizers/class-amp-meta-sanitizer.php
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
dynamicConstantNames:
- WEBSTORIES_DEV_MODE
- WPCOM_IS_VIP_ENV
- IS_WPCOM
- GOOGLESITEKIT_VERSION
- AMP__VERSION