chore(psalm): Fix annotations to make psalm happy

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-01-03 15:22:31 +01:00
parent a1d2e695c6
commit d892979efa
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\QBMapper; use OCP\AppFramework\Db\QBMapper;
use OCP\IDBConnection; use OCP\IDBConnection;
/** @template-extends QBMapper<Session> */
class SessionMapper extends QBMapper { class SessionMapper extends QBMapper {
public function __construct(IDBConnection $db) { public function __construct(IDBConnection $db) {
parent::__construct($db, 'deck_sessions', Session::class); parent::__construct($db, 'deck_sessions', Session::class);

View File

@@ -37,6 +37,7 @@ use OCP\IRequest;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/** @template-implements IEventListener<Event|SessionCreatedEvent|SessionClosedEvent> */
class LiveUpdateListener implements IEventListener { class LiveUpdateListener implements IEventListener {
private LoggerInterface $logger; private LoggerInterface $logger;
private SessionService $sessionService; private SessionService $sessionService;