Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Model/ScheduledMessageMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\Snowflake\IGenerator;
use OCP\Snowflake\ISnowflakeGenerator;

/**
* @method ScheduledMessage mapRowToEntity(array $row)
Expand All @@ -27,7 +27,7 @@
class ScheduledMessageMapper extends QBMapper {
public function __construct(
IDBConnection $db,
protected IGenerator $generator,
protected ISnowflakeGenerator $generator,

Check failure on line 30 in lib/Model/ScheduledMessageMapper.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

UndefinedClass

lib/Model/ScheduledMessageMapper.php:30:3: UndefinedClass: Class, interface or enum named OCP\Snowflake\ISnowflakeGenerator does not exist (see https://psalm.dev/019)
) {
parent::__construct($db, 'talk_scheduled_msg', ScheduledMessage::class);
}
Expand Down Expand Up @@ -129,7 +129,7 @@
#[\Override]
public function insert(Entity $entity): Entity {
/** @psalm-suppress InvalidArgument */
$entity->setId($this->generator->nextId());

Check failure on line 132 in lib/Model/ScheduledMessageMapper.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

UndefinedClass

lib/Model/ScheduledMessageMapper.php:132:18: UndefinedClass: Class, interface or enum named OCP\Snowflake\ISnowflakeGenerator does not exist (see https://psalm.dev/019)
return parent::insert($entity);
}
}
Loading