Repository navigation
Expand file tree
/
Copy pathdresscode.neon
More file actions
76 lines (60 loc) · 2.04 KB
/
Copy pathdresscode.neon
File metadata and controls
76 lines (60 loc) · 2.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
use:
- nette
- modernizations
typeAnalysis: phpstan
mistakes:
# Tracy is where dump() comes from
debugOutput: keep
paths:
- src
- tests
- tools
excludePaths:
- tests/**/fixtures*
fileExtensions:
- php
- phpt
imports: {grouping: {class: grouped}}
overrides:
-
paths: [src]
nameResolution: certain
use:
- compilerOptimizations
- deprecations
- # constants published in upper case, where the case is part of the API
paths:
- src/Tracy/Debugger/Debugger.php
- src/Tracy/Dumper/Dumper.php
- src/Tracy/Logger/ILogger.php
- src/Tracy/OutputDebugger/OutputDebugger.php
naming: {constant: keep}
- # $this_ holds the $this of a closure, a name PHP reserves
paths: [src/Tracy/Dumper/Exposer.php]
naming: {variable: keep}
- # the last fallback when neither mbstring nor iconv is loaded
paths: [src/Tracy/Helpers.php]
upgrading: {api: {replacedCalls: {'utf8_decode($string)': keep}}}
- # promotion would move the properties to the end, which changes how a Value is dumped
paths: [src/Tracy/Dumper/Value.php]
upgrading: {syntax: {promotedProperties: keep}}
- # the source of these functions is what the expected output shows
paths:
- 'tests/Tracy/BlueScreen.renderAgent().output.phpt'
- tests/Tracy/Debugger.exception.fiber.html.phpt
- tests/Tracy/Debugger.exception.generator.html.phpt
- tests/Tracy/Debugger.exception.html.phpt
- tests/Tracy/Debugger.exception.nonhtml.phpt
mistakes: {neverReturnType: keep}
- # the members are grouped by topic under divider comments
paths: [src/Tracy/Debugger/Debugger.php]
classes: {members: {order: keep}}
- # the deprecated property is still honored for BC
paths: [src/Tracy/BlueScreen/BlueScreen.php]
upgrading: {declarations: {deprecatedMember: keep}}
- # renaming the parameter would break calls naming the argument
paths: [src/Tracy/Logger/Logger.php]
classes: {overridingMethod: {parameterName: keep}}
- # the test reads the page of a User Error
paths: [tests/Tracy/Debugger.error-in-toString.phpt]
upgrading: {php: {deprecatedArgument: keep}}