-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
156 lines (155 loc) · 6.63 KB
/
phpstan-baseline.neon
File metadata and controls
156 lines (155 loc) · 6.63 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
parameters:
ignoreErrors:
# We're ignoring certain type errors in the database package, so that PhpStorm has proper autocompletion
-
identifier: parameter.phpDocType
paths:
- packages/database/src/functions.php
-
identifier: method.templateTypeNotInParameter
paths:
- packages/database/src/functions.php
-
identifier: return.type
paths:
- packages/database/src/functions.php
-
identifier: return.unresolvableType
paths:
- packages/database/src/Builder/*
-
identifier: parameter.phpDocType
paths:
- packages/database/src/Builder/*
-
identifier: property.phpDocType
paths:
- packages/database/src/Builder/*
-
identifier: class.notFound
paths:
- packages/database/src/Builder/*
-
identifier: varTag.nativeType
paths:
- packages/database/src/Builder/*
# End of database ignores
-
identifier: argument.named
paths:
- src/Tempest/Framework/Testing/*
- tests/Integration/**/*Test.php
- packages/auth/src/OAuth/Testing/*
- packages/**/src/Testing/*
- packages/core/src/Exceptions/ExceptionTester.php
- packages/**/tests/**/*.php
- packages/**/tests/*.php
-
identifier: smaller.alwaysFalse
path: packages/support/src/Arr/functions.php
count: 1
# Runtime guard: positive-int type guarantees $number >= 1, but we keep the check for safety
-
identifier: instanceof.alwaysTrue
path: packages/support/src/Arr/functions.php
count: 1
# Runtime guard: closure return type guarantees Generator, but we validate for a clear error message
-
identifier: disallowed.function
path: packages/clock/src/MockClock.php
count: 1
# Intentional: dd() is the purpose of MockClock::dd()
-
identifier: disallowed.function
path: packages/debug/src/DOMDebug.php
count: 1
# Intentional: lw() is the purpose of DOMDebug::dump()
-
identifier: disallowed.function
path: packages/debug/src/functions.php
count: 2
# Intentional: dd() delegates to ld() and dump() delegates to lw()
-
identifier: disallowed.function
path: packages/discovery/src/Composer.php
count: 1
# Intentional: exec() is required for running composer commands
-
identifier: disallowed.function
path: packages/console/src/Terminal/Terminal.php
count: 3
# Intentional: exec() is required for TTY terminal operations (stty, tput)
-
identifier: disallowed.function
path: packages/datetime/src/TemporalConvenienceMethods.php
count: 2
# Intentional: dd() is the purpose of TemporalInterface::dd()
-
identifier: identical.alwaysFalse
path: packages/datetime/src/DateTime.php
count: 6
# Runtime guard: IntlCalendar::get() returns false at runtime for extreme year values
-
identifier: booleanOr.alwaysFalse
path: packages/datetime/src/DateTime.php
count: 5
# Runtime guard: IntlCalendar::get() returns false at runtime for extreme year values
-
identifier: instanceof.alwaysTrue
path: packages/datetime/src/DateTime.php
count: 1
# Runtime guard: DateTimeInterface::getTimezone() can return false at runtime
-
identifier: disallowed.function
path: packages/console/src/Testing/ConsoleTester.php
count: 1
# Intentional: ld() is the purpose of ConsoleTester::dd()
-
identifier: disallowed.function
path: src/Tempest/Framework/Commands/ConfigShowCommand.php
count: 1
# Intentional: lw() used for debug output when available
-
identifier: disallowed.function
path: tests/Integration/Console/Fixtures/LogDebugCommand.php
count: 1
# Intentional: lw() is the purpose of this test fixture
-
identifier: disallowed.function
path: packages/support/tests/Filesystem/UnixFunctionsTest.php
count: 1
# Intentional: exec() restores permissions recursively during Unix test cleanup
-
identifier: requireOnce.fileNotFound
path: packages/support/tests/Fixtures/Phar/normalize_path.php
count: 1
# Intentional: require_once target exists only inside generated Phar archive at runtime
-
identifier: function.alreadyNarrowedType
path: packages/console/src/GenericConsole.php
count: 1
# Runtime guard: PHPDoc narrows string to class-string<BackedEnum>, but is_a() check is needed at runtime
-
identifier: argument.type
path: packages/validation/tests/Rules/IsEnumTest.php
count: 1
# Intentional: constructor accepts only enum class-strings; this test verifies runtime rejection path for invalid input
-
identifier: staticMethod.alreadyNarrowedType
path: packages/process/src/Testing/ProcessTester.php
count: 3
# Intentional: explicit assertTrue() calls keep callback-only branches counted as assertions in tests
-
identifier: function.notFound
paths:
- packages/view/tests/Fixtures/standalone-error-slot-usage.view.php
- packages/view/tests/Fixtures/standalone-error.view.php
- packages/view/tests/Fixtures/x-standalone-error-component.view.php
- tests/Integration/View/Fixtures/stacktrace-standalone-error.view.php
- tests/Integration/View/Fixtures/x-stacktrace-error-component.view.php
# Intentional: these fixtures validate source-path stack traces for view compilation errors
-
identifier: variable.undefined
path: packages/view/tests/Fixtures/standalone-undefined-variable.view.php
count: 1
# Intentional: this fixture validates undefined variable source mapping in view compilation errors