-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
34 lines (27 loc) · 1.34 KB
/
Copy pathphpstan.neon
File metadata and controls
34 lines (27 loc) · 1.34 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
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::#'
# Kept for constructor compatibility with 2.x; not used any more.
-
identifier: property.onlyWritten
path: Controller/Mcp/Index.php
- '#Parameter \#\d+ \$\w+ of method .+ expects Magento\\Catalog\\Model\\(Product|Category), Magento\\Catalog\\Api\\Data\\(ProductInterface|CategoryInterface) given\.#'