-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathphpstan.neon
More file actions
38 lines (38 loc) · 1.42 KB
/
Copy pathphpstan.neon
File metadata and controls
38 lines (38 loc) · 1.42 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
parameters:
paths:
- src
- tests
- config
level: 6
reportUnmatchedIgnoredErrors: false
symfony:
container_xml_path: %currentWorkingDirectory%/var/cache/website/dev/App_KernelDevDebugContainer.xml
ignoreErrors:
# PHPUnit mock methods - mocks don't expose these to static analysis
- '#Call to an undefined method .*::expects\(\)#'
- '#Call to an undefined method .*::method\(\)#'
# Sulu interface methods - runtime classes have these but interface doesn't declare them
-
message: '#StructureInterface::#'
path: src/Store/SuluContentLoader.php
# DOMNode vs DOMElement - XPath returns DOMNodeList of DOMNode but actual items are DOMElement
- '#Call to an undefined method DOMNode::#'
# PHPUnit test data providers
-
message: '#generic class ReflectionClass does not specify its types#'
path: tests/*
# Test array type hints - less strict for test data
-
message: '#no value type specified in iterable type array#'
path: tests/*
# Unused properties that may be used in future
-
message: '#is never read, only written#'
path: src/Controller/Admin/*
# PHPDoc vs runtime - conditions checking types for safety
- '#If condition is always true#'
- '#Negated boolean expression is always false#'
- '#Expression on left side of \?\? is not nullable#'
- '#will always evaluate to false#'
excludePaths:
- src/Kernel.php