Skip to content

Commit

Permalink
fix psalm issues again
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Sep 20, 2024
1 parent d845063 commit 3e5b56d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions lib/Service/FederatedProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,14 @@ public function editCurrency(string $projectId, int $currencyId, string $name, f
return $this->request($projectId, 'api/v1/public/projects/{token}/{password}/currency/' . $currencyId, $params, 'PUT');
}

/**
* @param string $remoteServer
* @param string $user
* @param int $size
* @param bool $darkTheme
* @return FileDisplayResponse<Http::STATUS_OK, array{Content-Type: string}>
* @throws \Exception
*/
public function getUserProxyAvatar(string $remoteServer, string $user, int $size, bool $darkTheme): FileDisplayResponse {
$url = $remoteServer . '/index.php/avatar/' . $user . '/' . $size . ($darkTheme ? '/dark' : '');
$options = [
Expand Down
12 changes: 6 additions & 6 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.17.0@c620f6e80d0abfca532b00bda366062aaedf6e5d">
<file src="lib/Migration/Version000406Date20200426154317.php">
<RedundantCast>
<code>(int) $strId</code>
</RedundantCast>
</file>
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
<file src="lib/Migration/Version000406Date20200426154317.php">
<RedundantCast>
<code><![CDATA[(int)$strId]]></code>
</RedundantCast>
</file>
</files>

0 comments on commit 3e5b56d

Please sign in to comment.