forked from mollie/Shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpstan.lvl8.neon
32 lines (31 loc) · 1.57 KB
/
.phpstan.lvl8.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
parameters:
level: 8
paths:
- ./Command/OrdersShippingCommand.php
- ./Components/iDEAL
- ./Components/Config
- ./Exceptions
- ./Services
excludes_analyse:
- node_modules/*
- Resources/*
- vendor/*
- Services/Mollie/Client/MollieHttpClient.php
ignoreErrors:
# -----------------------------------------------------------------------------------------------------------
# ignore Shopware attributes with magic getters and setters
- '#Call to method getMollieReturn\(\) on an unknown class Shopware\\Models\\Attribute\\OrderDetail#'
- '#Call to method setMollieReturn\(\) on an unknown class Shopware\\Models\\Attribute\\OrderDetail#'
- '#Call to method getMollieShopwareIdealIssuer\(\) on an unknown class Shopware\\Models\\Attribute\\Customer#'
- '#Call to method setMollieShopwareIdealIssuer\(\) on an unknown class Shopware\\Models\\Attribute\\Customer#'
# -----------------------------------------------------------------------------------------------------------
# ignore magic getters and setters in Mollie API objects
- '#Access to an undefined property Mollie\\Api\\Resources\\Issuer::\$isSelected#'
# -----------------------------------------------------------------------------------------------------------
services:
- class: MollieShopware\Tests\PHPStan\Rules\NoStrictTypesRule
tags:
- phpstan.rules.rule
- class: MollieShopware\Tests\PHPStan\Rules\NoManufacturerRule
tags:
- phpstan.rules.rule