瀏覽代碼

fix(activity): Remove unneeded exception (types are enforced)

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/44886/head
Joas Schilling 1 月之前
父節點
當前提交
17744f8590
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 0 行新增5 行删除
  1. 0
    4
      lib/private/Activity/Manager.php
  2. 0
    1
      lib/public/Activity/IManager.php

+ 0
- 4
lib/private/Activity/Manager.php 查看文件

@@ -334,12 +334,8 @@ class Manager implements IManager {
* 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;
}


+ 0
- 1
lib/public/Activity/IManager.php 查看文件

@@ -165,7 +165,6 @@ interface IManager {
* 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;

Loading…
取消
儲存