-
Notifications
You must be signed in to change notification settings - Fork 193
/
phpstan.neon
36 lines (34 loc) · 1.58 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
includes:
- vendor/timeweb/phpstan-enum/extension.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 0
paths:
- src/
bootstrapFiles:
- give.php
scanDirectories:
- includes/
- vendor/vendor-prefixed/
- vendor/woocommerce/action-scheduler
scanFiles:
- vendor/wordpress/wordpress/src/wp-includes/compat.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
excludePaths:
analyse:
- src/LegacySubscriptions/includes/ # Scan but do not analyse
analyseAndScan:
- src/Form/LegacyConsumer/ServiceProvider.php # Needs a closer look
- src/Framework/FieldsAPI/Concerns/HasType.php # Trait assumes class constant TYPE, which is defined on each Node class.
- src/Framework/Migrations/ # Give\Framework\Migrations\Actions has use of undefined constant MigrationsRunner::MIGRATION_OPTION
- src/Framework/PaymentGateways/ # Known use of unsafe static
- src/PaymentGateways/Actions/CreateSubscriptionAction/ # phpstan isn't finding inherited constructor for LegacySubscriber
- src/TestData/ # Non-production code.
- src/Tracking/Events/ThemeTracking.php # Unsure how undefined property $trackId is supposed to be declared or used.
services:
-
class: Give\PHPStan\Log\StaticFacadeMethodsReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension