-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
46 lines (38 loc) · 2.07 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
37
38
39
40
41
42
43
44
45
46
parameters:
level: 1
paths:
- .
excludePaths:
- vendor/*
- generated/*
- setup/*
- Test/*
- tests/*
ignoreErrors:
# Factory related errors
- '#Property .+ has unknown class .+Factory as its type#'
- '#Parameter .+ of method .+ has invalid type .+Factory#'
- '#Call to an undefined method .+Factory::.+\(\)#'
# Model/Carrier.php - StockRegistry deprecation
- message: '#Parameter \$stockRegistry of method O2TI\\SigepWebCarrier\\Model\\Carrier::__construct\(\) has typehint with deprecated interface Magento\\CatalogInventory\\Api\\StockRegistryInterface#'
path: Model/Carrier.php
# Model/Config/Source/Format.php - ArrayInterface deprecation
- message: '#Class O2TI\\SigepWebCarrier\\Model\\Config\\Source\\Format implements deprecated interface Magento\\Framework\\Option\\ArrayInterface#'
path: Model/Config/Source/Format.php
# Model/Config/Source/Environment.php - ArrayInterface deprecation
- message: '#Class O2TI\\SigepWebCarrier\\Model\\Config\\Source\\Environment implements deprecated interface Magento\\Framework\\Option\\ArrayInterface#'
path: Model/Config/Source/Environment.php
# Model/SigepWebServices.php - _getResource deprecation
- message: '#Call to deprecated method _getResource\(\) of class Magento\\Framework\\Model\\AbstractModel#'
path: Model/SigepWebServices.php
# Model/TrackingStatus.php - save() deprecation
- message: '#Call to deprecated method save\(\) of class Magento\\Framework\\Model\\AbstractModel#'
path: Model/TrackingStatus.php
# Common Magento patterns
- '#Casting to (int|string) something that''s already (int|string)#'
- '#Only booleans are allowed in (an if condition|a negated boolean)#'
- '#Short ternary operator is not allowed#'
- '#Construct empty\(\) is not allowed#'
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
inferPrivatePropertyTypeFromConstructor: true