forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
41 lines (37 loc) · 1.54 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
parameters:
level: 5
bootstrapFiles:
- .github/workflows/phpstan/autoload.php
paths:
- override
- src
- tools
- webservice
ignoreErrors:
- '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:#'
- '#^Unsafe usage of new static\(\)\.$#'
## Relative to Attribute PHP 8
- '#^Access to an undefined property Attribute\:\:\$id\.$#'
- '#^Call to an undefined method Attribute\:\:delete\(\)\.$#'
- '#^Call to an undefined static method Attribute\:\:checkAttributeQty\(\)\.$#'
- '#^Call to an undefined static method Attribute\:\:getAttributeMinimalQty\(\)\.$#'
- '#^Call to an undefined static method Attribute\:\:getAttributes\(\)\.$#'
universalObjectCratesClasses:
- Cookie
- ObjectModel
- Order
- OrderInvoice
- Product
services:
strictTypesForNewClassesRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/strict-types-for-new-classes-rule-exclusion-list.php
returnTypesForNewMethodsRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/return-types-for-new-class-methods-rule-exclusion-list.php
typeHintsForNewMethodsRuleConfigurationFileLoader:
class: PHPStanForPrestaShop\PHPConfigurationLoader\PHPConfigurationFileLoader
arguments:
- .github/workflows/phpstan/type-hint-for-new-class-methods-rule-exclusion-list.php