Skip to content

Commit fe7d935

Browse files
committed
Psaml to level 1
1 parent ebe09d2 commit fe7d935

File tree

2 files changed

+1
-37
lines changed

2 files changed

+1
-37
lines changed

psalm.xml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,5 @@
1414

1515
<issueHandlers>
1616
<LessSpecificReturnType errorLevel="info" />
17-
18-
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
19-
20-
<DeprecatedMethod errorLevel="info" />
21-
<DeprecatedProperty errorLevel="info" />
22-
<DeprecatedClass errorLevel="info" />
23-
<DeprecatedConstant errorLevel="info" />
24-
<DeprecatedInterface errorLevel="info" />
25-
<DeprecatedTrait errorLevel="info" />
26-
27-
<InternalMethod errorLevel="info" />
28-
<InternalProperty errorLevel="info" />
29-
<InternalClass errorLevel="info" />
30-
31-
<MissingClosureReturnType errorLevel="info" />
32-
<MissingReturnType errorLevel="info" />
33-
<MissingPropertyType errorLevel="info" />
34-
<InvalidDocblock errorLevel="info" />
35-
<MisplacedRequiredParam errorLevel="info" />
36-
37-
<PropertyNotSetInConstructor errorLevel="info" />
38-
<MissingConstructor errorLevel="info" />
39-
<MissingClosureParamType errorLevel="info" />
40-
<MissingParamType errorLevel="info" />
41-
42-
<RedundantCondition errorLevel="info" />
43-
44-
<DocblockTypeContradiction errorLevel="info" />
45-
<RedundantConditionGivenDocblockType errorLevel="info" />
46-
47-
<UnresolvableInclude errorLevel="info" />
48-
49-
<RawObjectIteration errorLevel="info" />
50-
51-
<InvalidStringClass errorLevel="info" />
5217
</issueHandlers>
5318
</psalm>

src/Types/ContextFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,8 @@ private function parseNamespace(ArrayIterator $tokens) : string
212212
private function parseUseStatement(ArrayIterator $tokens) : array
213213
{
214214
$uses = [];
215-
$continue = true;
216215

217-
while ($continue) {
216+
while (true) {
218217
$this->skipToNextStringOrNamespaceSeparator($tokens);
219218

220219
$uses = array_merge($uses, $this->extractUseStatements($tokens));

0 commit comments

Comments
 (0)