[CORE][ENTITY] Properly port ProfileTag, ProfileTagSubscription and ProfileList as ActorTag, ActorTagSubscription and ActorCircle

This commit is contained in:
2021-11-27 04:11:35 +00:00
parent 11d2cfb9ed
commit 51994406da
7 changed files with 206 additions and 84 deletions

View File

@@ -199,11 +199,11 @@ class GSFile
* Throw a client exception if the cache key $id doesn't contain
* exactly one entry
*/
public static function error($except, $id, array $res)
public static function error($exception, $id, array $res)
{
switch (\count($res)) {
case 0:
throw new $except();
throw new $exception();
case 1:
return $res[0];
default: