зеркало из https://github.com/nextcloud/spreed.git
Fix type handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
1c09388fb2
Коммит
44104b9ab6
|
@ -75,7 +75,7 @@ class ChatManager {
|
|||
private IEventDispatcher $dispatcher;
|
||||
private IDBConnection $connection;
|
||||
private INotificationManager $notificationManager;
|
||||
private \OCP\Share\IManager $shareManager;
|
||||
private IManager $shareManager;
|
||||
private RoomShareProvider $shareProvider;
|
||||
private ParticipantService $participantService;
|
||||
private Notifier $notifier;
|
||||
|
|
|
@ -54,8 +54,7 @@ class SystemMessage {
|
|||
protected GuestManager $guestManager;
|
||||
protected IPreviewManager $previewManager;
|
||||
protected RoomShareProvider $shareProvider;
|
||||
/** @var PhotoCache */
|
||||
protected $photoCache;
|
||||
protected PhotoCache $photoCache;
|
||||
protected IRootFolder $rootFolder;
|
||||
protected IURLGenerator $url;
|
||||
protected ?IL10N $l = null;
|
||||
|
|
|
@ -39,7 +39,7 @@ use OCP\IL10N;
|
|||
class ReactionManager {
|
||||
private ChatManager $chatManager;
|
||||
/** @var ICommentsManager|CommentsManager */
|
||||
private $commentsManager;
|
||||
private ICommentsManager $commentsManager;
|
||||
private IL10N $l;
|
||||
private MessageParser $messageParser;
|
||||
private Notifier $notifier;
|
||||
|
|
|
@ -24,16 +24,13 @@ declare(strict_types=1);
|
|||
namespace OCA\Talk\Command;
|
||||
|
||||
use OC\Core\Command\Base;
|
||||
use OCA\Talk\Manager;
|
||||
use OCA\Talk\Participant;
|
||||
use OCP\IDBConnection;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class ActiveCalls extends Base {
|
||||
public IDBConnection $connection;
|
||||
|
||||
public Manager $manager;
|
||||
protected IDBConnection $connection;
|
||||
|
||||
public function __construct(IDBConnection $connection) {
|
||||
parent::__construct();
|
||||
|
|
|
@ -82,7 +82,7 @@ class ChatController extends AEnvironmentAwareController {
|
|||
|
||||
private MessageParser $messageParser;
|
||||
|
||||
private \OCP\Collaboration\AutoComplete\IManager $autoCompleteManager;
|
||||
private IManager $autoCompleteManager;
|
||||
|
||||
private IUserStatusManager $statusManager;
|
||||
|
||||
|
|
|
@ -29,9 +29,9 @@ use OCA\Talk\Room;
|
|||
class EndCallForEveryoneEvent extends ModifyRoomEvent {
|
||||
|
||||
/** @var string[] */
|
||||
protected ?array $sessionIds = null;
|
||||
protected array $sessionIds = [];
|
||||
/** @var string[] */
|
||||
protected ?array $userIds = null;
|
||||
protected array $userIds = [];
|
||||
|
||||
public function __construct(Room $room,
|
||||
?Participant $actor = null) {
|
||||
|
@ -49,7 +49,7 @@ class EndCallForEveryoneEvent extends ModifyRoomEvent {
|
|||
/**
|
||||
* Only available in the after-event
|
||||
*/
|
||||
public function getSessionIds(): ?array {
|
||||
public function getSessionIds(): array {
|
||||
return $this->sessionIds;
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ class EndCallForEveryoneEvent extends ModifyRoomEvent {
|
|||
/**
|
||||
* Only available in the after-event
|
||||
*/
|
||||
public function getUserIds(): ?array {
|
||||
public function getUserIds(): array {
|
||||
return $this->userIds;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,7 @@ use OCP\Share\Exceptions\ShareNotFound;
|
|||
class CloudFederationProviderTalk implements ICloudFederationProvider {
|
||||
private IUserManager $userManager;
|
||||
|
||||
/** @var AddressHandler */
|
||||
private $addressHandler;
|
||||
private AddressHandler $addressHandler;
|
||||
|
||||
private FederationManager $federationManager;
|
||||
|
||||
|
|
|
@ -66,8 +66,7 @@ class Notifier implements INotifier {
|
|||
protected ICommentsManager $commentManager;
|
||||
protected MessageParser $messageParser;
|
||||
protected Definitions $definitions;
|
||||
/** @var AddressHandler */
|
||||
protected $addressHandler;
|
||||
protected AddressHandler $addressHandler;
|
||||
|
||||
/** @var Room[] */
|
||||
protected array $rooms = [];
|
||||
|
|
|
@ -43,8 +43,7 @@ class BackendNotifier {
|
|||
private ISecureRandom $secureRandom;
|
||||
private Manager $signalingManager;
|
||||
private ParticipantService $participantService;
|
||||
/** @var IUrlGenerator */
|
||||
private $urlGenerator;
|
||||
private IURLGenerator $urlGenerator;
|
||||
|
||||
public function __construct(Config $config,
|
||||
LoggerInterface $logger,
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace OCA\Talk\Tests\php\Chat\AutoComplete;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Chat\AutoComplete\SearchPlugin;
|
||||
use OCA\Talk\Files\Util;
|
||||
use OCA\Talk\GuestManager;
|
||||
|
@ -36,6 +35,7 @@ use OCP\IL10N;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class SearchPluginTest extends TestCase {
|
||||
|
||||
|
|
|
@ -23,10 +23,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Talk\Tests\php\Chat;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Chat\AutoComplete\Sorter;
|
||||
use OCA\Talk\Chat\CommentsManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class SorterTest extends TestCase {
|
||||
|
||||
|
|
|
@ -59,8 +59,6 @@ class NotifierTest extends TestCase {
|
|||
/** @var Util|MockObject */
|
||||
protected $util;
|
||||
|
||||
protected Notifier $notifier;
|
||||
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Talk\Tests\php\Chat\Parser;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Chat\Parser\UserMention;
|
||||
use OCA\Talk\Exceptions\ParticipantNotFoundException;
|
||||
use OCA\Talk\GuestManager;
|
||||
|
@ -38,6 +37,7 @@ use OCP\IL10N;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class UserMentionTest extends TestCase {
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Talk\Tests\php\Collaboration\Collaborators;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Collaboration\Collaborators\RoomPlugin;
|
||||
use OCA\Talk\Manager;
|
||||
use OCA\Talk\Room;
|
||||
|
@ -34,6 +33,7 @@ use OCP\Collaboration\Collaborators\SearchResultType;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserSession;
|
||||
use OCP\Share\IShare;
|
||||
use Test\TestCase;
|
||||
|
||||
class RoomPluginTest extends TestCase {
|
||||
protected ?Manager $manager = null;
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
namespace OCA\Talk\Tests\php\Controller;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCP\IRequest;
|
||||
use OCA\Talk\Chat\CommentsManager;
|
||||
use OCA\Talk\Config;
|
||||
use OCA\Talk\Controller\SignalingController;
|
||||
|
@ -47,12 +45,14 @@ use OCP\Http\Client\IClientService;
|
|||
use OCP\IDBConnection;
|
||||
use OCP\IGroupManager;
|
||||
use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
use OCP\IUser;
|
||||
use OCP\IUserManager;
|
||||
use OCP\Security\IHasher;
|
||||
use OCP\Security\ISecureRandom;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Test\TestCase;
|
||||
|
||||
class CustomInputSignalingController extends SignalingController {
|
||||
private $inputStream;
|
||||
|
@ -97,7 +97,7 @@ class SignalingControllerTest extends TestCase {
|
|||
/** @var LoggerInterface|MockObject */
|
||||
private $logger;
|
||||
|
||||
private ?\OCA\Talk\Tests\php\Controller\CustomInputSignalingController $controller = null;
|
||||
private ?CustomInputSignalingController $controller = null;
|
||||
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace OCA\Talk\Tests\php\Notifications;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\FederatedFileSharing\AddressHandler;
|
||||
use OCA\Talk\Chat\CommentsManager;
|
||||
use OCA\Talk\Chat\MessageParser;
|
||||
|
@ -48,6 +47,7 @@ use OCP\Notification\INotification;
|
|||
use OCP\RichObjectStrings\Definitions;
|
||||
use OCP\Share\IManager as IShareManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class NotifierTest extends TestCase {
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Talk\Tests\php\Settings\Admin;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Config;
|
||||
use OCA\Talk\MatterbridgeManager;
|
||||
use OCA\Talk\Service\CommandService;
|
||||
|
@ -36,6 +35,7 @@ use OCP\IL10N;
|
|||
use OCP\IUserSession;
|
||||
use OCP\L10N\IFactory;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class AdminSettingsTest extends TestCase {
|
||||
|
||||
|
|
|
@ -23,11 +23,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Talk\Tests\php\Settings\Admin;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\Settings\Admin\Section;
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Test\TestCase;
|
||||
|
||||
class SectionTest extends TestCase {
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
namespace OCA\Talk\Tests\php\Signaling;
|
||||
|
||||
use Test\TestCase;
|
||||
use OCA\Talk\AppInfo\Application;
|
||||
use OCA\Talk\Chat\CommentsManager;
|
||||
use OCA\Talk\Config;
|
||||
|
@ -50,6 +49,7 @@ use OCP\Security\IHasher;
|
|||
use OCP\Security\ISecureRandom;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Test\TestCase;
|
||||
|
||||
class CustomBackendNotifier extends BackendNotifier {
|
||||
private array $requests = [];
|
||||
|
|
Загрузка…
Ссылка в новой задаче