-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
39 lines (31 loc) · 1.67 KB
/
Copy pathphpstan.neon
File metadata and controls
39 lines (31 loc) · 1.67 KB
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
includes:
- vendor/bitexpert/phpstan-magento/extension.neon
parameters:
level: 5
paths:
- .
excludePaths:
analyseAndScan:
- vendor
- Test
# Magento core PHPDoc blocks are often inaccurate; do not treat them as facts
treatPhpDocTypesAsCertain: false
# Do not fail when an ignore pattern matches nothing
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Magento service contracts are narrower than the concrete classes the
# object manager actually returns. Calling Store, Product, Quote and
# Request methods through the interface is standard practice in Magento.
- '#Call to an undefined method Magento\\Store\\Api\\Data\\StoreInterface::#'
- '#Call to an undefined method Magento\\Catalog\\Api\\Data\\ProductInterface::#'
- '#Call to an undefined method Magento\\Catalog\\Api\\Data\\CategoryInterface::#'
- '#Call to an undefined method Magento\\Framework\\App\\RequestInterface::#'
- '#Parameter \#\d+ \$\w+ of method .+ expects Magento\\Catalog\\Model\\(Product|Category), Magento\\Catalog\\Api\\Data\\(ProductInterface|CategoryInterface) given\.#'
# CartResolver keeps QuoteIdMaskFactory only for constructor compatibility.
-
identifier: property.onlyWritten
path: Model/CartResolver.php
- '#Call to an undefined method Magento\\Quote\\Api\\Data\\CartInterface::#'
# Every concrete adapter (Pdo\Mysql) has lastInsertId(); Magento core
# calls it through the interface the same way.
- '#Call to an undefined method Magento\\Framework\\DB\\Adapter\\AdapterInterface::lastInsertId\(\)#'