Skip to content

Commit

Permalink
fix(psalm): Fix psalm issues on NC 26
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jun 16, 2023
1 parent 93977ed commit 222ac49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Classifiers/Classifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private function getConvertedFilePath(Node $file): string {
}
$path = $file->getStorage()->getLocalFile($file->getInternalPath());

if ($path === false) {
if (!is_string($path)) {
throw new NotFoundException();
}

Expand Down
3 changes: 3 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
</InvalidScalarArgument>
</file>
<file src="lib/Classifiers/Classifier.php">
<DocblockTypeContradiction occurrences="1">
<code>$preview === false</code>
</DocblockTypeContradiction>
<MixedAssignment occurrences="1">
<code>$results</code>
</MixedAssignment>
Expand Down

0 comments on commit 222ac49

Please sign in to comment.