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
fix(activity): Remove unneeded exception (types are enforced)
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 17, 2024
commit 17744f8590513e6a1d0e2a19a101b5f6e7332fcc
4 changes: 0 additions & 4 deletions lib/private/Activity/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,8 @@ public function getRequirePNG(): bool {
* Set the user we need to use
*
* @param string|null $currentUserId
* @throws \UnexpectedValueException If the user is invalid
*/
public function setCurrentUserId(?string $currentUserId = null): void {
if (!is_string($currentUserId) && $currentUserId !== null) {
throw new \UnexpectedValueException('The given current user is invalid');
}
$this->currentUserId = $currentUserId;
}

Expand Down
1 change: 0 additions & 1 deletion lib/public/Activity/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public function getRequirePNG(): bool;
* Set the user we need to use
*
* @param string|null $currentUserId
* @throws \UnexpectedValueException If the user is invalid
* @since 9.0.1
*/
public function setCurrentUserId(?string $currentUserId = null): void;
Expand Down