mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Merge pull request #14566 from MrPetovan/bug/phpstan-follow-up
Differentiate both UserGServer types used in Content/Conversation
This commit is contained in:
commit
9e2b192054
1 changed files with 5 additions and 4 deletions
|
@ -34,7 +34,8 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||||
use Friendica\Object\Post as PostObject;
|
use Friendica\Object\Post as PostObject;
|
||||||
use Friendica\Object\Thread;
|
use Friendica\Object\Thread;
|
||||||
use Friendica\Protocol\Activity;
|
use Friendica\Protocol\Activity;
|
||||||
use Friendica\User\Settings\Repository\UserGServer;
|
use Friendica\User\Settings\Entity\UserGServer as UserGServerEntity;
|
||||||
|
use Friendica\User\Settings\Repository\UserGServer as UserGServerRepository;
|
||||||
use Friendica\Util\Crypto;
|
use Friendica\Util\Crypto;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Profiler;
|
use Friendica\Util\Profiler;
|
||||||
|
@ -81,10 +82,10 @@ class Conversation
|
||||||
private $mode;
|
private $mode;
|
||||||
/** @var IHandleUserSessions */
|
/** @var IHandleUserSessions */
|
||||||
private $session;
|
private $session;
|
||||||
/** @var UserGServer */
|
/** @var UserGServerRepository */
|
||||||
private $userGServer;
|
private $userGServer;
|
||||||
|
|
||||||
public function __construct(UserGServer $userGServer, LoggerInterface $logger, Profiler $profiler, Activity $activity, L10n $l10n, Item $item, Arguments $args, BaseURL $baseURL, IManageConfigValues $config, IManagePersonalConfigValues $pConfig, Page $page, Mode $mode, AppHelper $appHelper, IHandleUserSessions $session)
|
public function __construct(UserGServerRepository $userGServer, LoggerInterface $logger, Profiler $profiler, Activity $activity, L10n $l10n, Item $item, Arguments $args, BaseURL $baseURL, IManageConfigValues $config, IManagePersonalConfigValues $pConfig, Page $page, Mode $mode, AppHelper $appHelper, IHandleUserSessions $session)
|
||||||
{
|
{
|
||||||
$this->activity = $activity;
|
$this->activity = $activity;
|
||||||
$this->item = $item;
|
$this->item = $item;
|
||||||
|
@ -455,7 +456,7 @@ class Conversation
|
||||||
|
|
||||||
$userGservers = $this->userGServer->listIgnoredByUser($this->session->getLocalUserId());
|
$userGservers = $this->userGServer->listIgnoredByUser($this->session->getLocalUserId());
|
||||||
|
|
||||||
$ignoredGsids = array_map(function (UserGServer $userGServer) {
|
$ignoredGsids = array_map(function (UserGServerEntity $userGServer) {
|
||||||
return $userGServer->gsid;
|
return $userGServer->gsid;
|
||||||
}, $userGservers->getArrayCopy());
|
}, $userGservers->getArrayCopy());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue