Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(UserConfigHelper): Explicitly cast value to string
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and christianlupus committed Mar 5, 2025
commit d15af6af3071020411c486c8daa4ce466d827716
2 changes: 1 addition & 1 deletion lib/Helper/UserConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function getUpdateInterval(): int {
* @throws UserNotLoggedInException if no user is logged in
*/
public function setUpdateInterval(int $value): void {
$this->setRawValue(self::KEY_UPDATE_INTERVAL, $value);
$this->setRawValue(self::KEY_UPDATE_INTERVAL, (string)$value);
}

/**
Expand Down
5 changes: 0 additions & 5 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
<code><![CDATA[array]]></code>
</InvalidReturnType>
</file>
<file src="lib/Helper/UserConfigHelper.php">
<InvalidScalarArgument>
<code><![CDATA[$value]]></code>
</InvalidScalarArgument>
</file>
<file src="lib/Helper/UserFolderHelper.php">
<MissingDependency>
<code><![CDATA[$this->root]]></code>
Expand Down