Skip to content

Commit 768e52a

Browse files
committed
Disable findUnusedCode in Psalm
1 parent e19fba5 commit 768e52a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/Commands/UpdateCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ protected function getReleaseNotes(): null|string
9999
return null;
100100
}
101101

102+
/**
103+
* @psalm-suppress InvalidReturnStatement
104+
*/
102105
return $this->option('release-notes') ?: $this->ask('What markdown Release Notes should be added to the CHANGELOG?');
103106
}
104107

psalm.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
errorLevel="4"
44
findUnusedVariablesAndParams="true"
55
findUnusedBaselineEntry="true"
6-
findUnusedCode="true"
6+
findUnusedCode="false"
77
resolveFromConfigFile="true"
88
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xmlns="https://getpsalm.org/schema/config"

0 commit comments

Comments
 (0)