Fix phpstan errors

This commit is contained in:
Art4 2024-11-16 19:36:08 +00:00
parent a24a65de2f
commit ceb4747eea
3 changed files with 4 additions and 3 deletions

View file

@ -7,6 +7,7 @@
namespace Friendica\Core; namespace Friendica\Core;
use Friendica\App;
use Friendica\App\Mode; use Friendica\App\Mode;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Database\DBStructure; use Friendica\Database\DBStructure;

View file

@ -41,14 +41,14 @@ class Show extends BaseModule
/** @var AppHelper */ /** @var AppHelper */
protected $appHelper; protected $appHelper;
public function __construct(L10n $l10n, BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $session, SystemMessages $sysMessages, Page $page, AppHelper $app, array $server, array $parameters = []) public function __construct(L10n $l10n, BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $session, SystemMessages $sysMessages, Page $page, AppHelper $appHelper, array $server, array $parameters = [])
{ {
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->session = $session; $this->session = $session;
$this->sysMessages = $sysMessages; $this->sysMessages = $sysMessages;
$this->page = $page; $this->page = $page;
$this->app = $app; $this->appHelper = $appHelper;
} }
protected function content(array $request = []): string protected function content(array $request = []): string

View file

@ -319,7 +319,7 @@ class Notifier
$recipients = $recipients_followup; $recipients = $recipients_followup;
} }
$apdelivery = self::activityPubDelivery($cmd, $target_item, $parent, $thr_parent, $a->getQueueValue('priority'), $a->getQueueValue('created'), $recipients); $apdelivery = self::activityPubDelivery($cmd, $target_item, $parent, $thr_parent, $appHelper->getQueueValue('priority'), $appHelper->getQueueValue('created'), $recipients);
$ap_contacts = $apdelivery['contacts']; $ap_contacts = $apdelivery['contacts'];
$delivery_queue_count += $apdelivery['count']; $delivery_queue_count += $apdelivery['count'];