-
Notifications
You must be signed in to change notification settings - Fork 53
/
.phpstan.neon
31 lines (29 loc) · 1 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
parameters:
level: 8
paths:
- ./src
excludePaths:
- ./src/Resources/*
- ./src/Compatibility/Bundles/FlowBuilder/Events/*
# legacy code that is not working with abstract/interface changes
- ./src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php
- ./src/Service/Mail/MailService63.php
disallowedFunctionCalls:
- function: 'var_dump()'
message: 'use some logger instead'
- function: 'var_export()'
message: 'use some logger instead'
- function: 'dd()'
message: 'use some logger instead'
- function: 'print_r()'
message: 'use some logger instead'
- function: 'putenv()'
message: 'might overwrite existing variables'
scanDirectories:
- polyfill/Shopware
services:
- class: MolliePayments\PHPStan\Rules\NoManufacturerRule
tags:
- phpstan.rules.rule
includes:
- vendor/spaze/phpstan-disallowed-calls/extension.neon