-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpstan.neon
More file actions
57 lines (56 loc) · 2.28 KB
/
phpstan.neon
File metadata and controls
57 lines (56 loc) · 2.28 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
parameters:
level: 5
parallel:
# workaround for Too many open files in phar
maximumNumberOfProcesses: 2
paths:
- joomla
- magento
excludePaths:
analyse:
- joomla/components/com_magebridge/vendor
ignoreErrors:
# Joomla AuthenticationResponse::$status is typed as string in PHPDoc but actually accepts int constants
- message: '#Property Joomla\\CMS\\Authentication\\AuthenticationResponse::\$status \(string\) does not accept int\.#'
identifier: assign.propertyType
# Template files and components access protected properties via $this which is valid in Joomla
# Also, $app->input is public in Joomla 5 but marked protected in PHPStan stubs
- identifier: property.protected
# Ignore isset/empty on non-nullable properties - valid runtime checks
- identifier: isset.property
- identifier: empty.property
# Language::_() deprecation - may vary between Joomla versions
- message: '#Call to deprecated method _\(\) of class Joomla\\CMS\\Language\\Language#'
identifier: method.deprecated
reportUnmatched: false
# Magento legacy code: Mage::getModel() returns object|false, runtime checks are caller's responsibility
- identifier: method.nonObject
path: magento
# Magento legacy code: dynamic magic methods/properties not declared in stubs
- identifier: method.notFound
path: magento
- identifier: property.notFound
path: magento
# Magento legacy code: dynamic method signatures differ from stubs
- identifier: argument.type
path: magento
- identifier: arguments.count
path: magento
scanDirectories:
- vendor/joomla/joomla-cms/administrator
- vendor/joomla/joomla-cms/components
- vendor/joomla/joomla-cms/includes
- vendor/joomla/joomla-cms/libraries
- vendor/joomla/joomla-cms/modules
- vendor/joomla/joomla-cms/plugins
- vendor/openmage/magento-lts/lib
- vendor/openmage/magento-lts/app/code
scanFiles:
- vendor/joomla/joomla-cms/libraries/bootstrap.php
- vendor/joomla/joomla-cms/libraries/src/Language/Text.php
- vendor/joomla/joomla-cms/libraries/vendor/joomla/filesystem/src/Folder.php
- vendor/openmage/magento-lts/app/Mage.php
tmpDir: tmp
treatPhpDocTypesAsCertain: false
tips:
discoveringSymbols: false