forked from GoogleForCreators/web-stories-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
43 lines (41 loc) · 1.29 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
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
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
paths:
- includes/
excludePaths:
- includes/vendor/*
- includes/polyfills/*
scanDirectories:
- third-party/
scanFiles:
- 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