-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.phpstan.neon
65 lines (57 loc) · 2.37 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
includes:
- vendor/mahocommerce/maho-phpstan-plugin/extension.neon
- .phpstan.baseline.neon
parameters:
magentoRootPath: %currentWorkingDirectory%
phpVersion: 80200
fileExtensions:
- php
- phtml
paths:
- app/bootstrap.php
- app/Mage.php
- app/code/core/Mage
- app/design
- lib
- maho
- public
excludePaths:
#incompatible interfaces
- app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
- app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
- app/code/core/Mage/Api/Model/Acl/Assert/Ip.php
- app/code/core/Mage/Api/Model/Acl/Assert/Time.php
- app/code/core/Mage/Adminhtml/Block/Widget/Grid/Block.php
- lib/Varien/Directory/Collection.php
- lib/Varien/Directory/Factory.php
- lib/Varien/File/Object.php
# deprecated _getHelper()
- app/code/core/Mage/Adminhtml/Controller/Rss/Abstract.php
- app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.php
- app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.php
# contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
- app/code/core/Mage/Dataflow/Model/Session/Adapter/Http.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator/Http.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator/File/Csv.php
- lib/Varien/Convert/Validator/Column.php
# Cannot declare class Varien_Date, because the name is already in use
- app/code/core/Mage/Catalog/Model/Product/Option/Type/Date.php
# Class phpseclib\Net\SSH2 not found.
- app/code/core/Mage/Paypal/Model/Report/Settlement.php
- lib/Varien/Io/Sftp.php
# Dataflow/Model/Convert/Iterator.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator.php
# Too much noise from "Variable $this might not be defined"
- app/code/core/*/*/data/*
- app/code/core/*/*/sql/*
# requires Mycrypt
- lib/Varien/Crypt/Mcrypt.php
# Instantiated class not found
- lib/Varien/Image/Adapter.php
level: 4
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
treatPhpDocTypesAsCertain: false
typeAliases:
Cm_RedisSession_Model_Session: 'Mage_Core_Model_Resource_Session'
tmpDir: var