Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
janepie authored and julien-nc committed Mar 4, 2025
1 parent 3014350 commit 9020e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private function getWidgetFile(): ?File {
// 'force_locale' is set to true
$userLocale = $systemLocale;
}
} elseif (empty($userLocal)) {
} elseif (empty($userLocale)) {
$userLocale = 'en_US';
}

Expand Down
5 changes: 5 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
<referencedClass name="OC\User\NoUserException" />
</errorLevel>
</UndefinedDocblockClass>
<UndefinedClass>
<errorLevel type="suppress">
<referencedClass name="OC_User" />
</errorLevel>
</UndefinedClass>
</issueHandlers>
</psalm>

0 comments on commit 9020e77

Please sign in to comment.