diff --git a/apps/settings/lib/Service/AuthorizedGroupService.php b/apps/settings/lib/Service/AuthorizedGroupService.php index 223bf8ee19e..51eae61670e 100644 --- a/apps/settings/lib/Service/AuthorizedGroupService.php +++ b/apps/settings/lib/Service/AuthorizedGroupService.php @@ -17,6 +17,9 @@ use OCP\DB\Exception; use OCP\IGroup; use Throwable; +/** + * @psalm-api - we cannot use final as this will break unit tests + */ readonly class AuthorizedGroupService { public function __construct( private AuthorizedGroupMapper $mapper, diff --git a/core/BackgroundJobs/ExpirePreviewsJob.php b/core/BackgroundJobs/ExpirePreviewsJob.php index 12d608b1d5a..34cfd58b391 100644 --- a/core/BackgroundJobs/ExpirePreviewsJob.php +++ b/core/BackgroundJobs/ExpirePreviewsJob.php @@ -15,6 +15,9 @@ use OCP\BackgroundJob\IJob; use OCP\BackgroundJob\TimedJob; use OCP\IConfig; +/** + * @psalm-api - we cannot use final as this will break unit tests + */ class ExpirePreviewsJob extends TimedJob { public function __construct( ITimeFactory $time, diff --git a/lib/private/Files/Cache/Storage.php b/lib/private/Files/Cache/Storage.php index 5417095f44b..8eea54b5840 100644 --- a/lib/private/Files/Cache/Storage.php +++ b/lib/private/Files/Cache/Storage.php @@ -26,6 +26,7 @@ use Psr\Log\LoggerInterface; * A mapping between the two storage ids is stored in the database and accessible through this class * * @package OC\Files\Cache + * @psalm-api */ class Storage { private string $storageId; diff --git a/lib/private/Files/Cache/StorageGlobal.php b/lib/private/Files/Cache/StorageGlobal.php index 336f136509d..8835dbf9f8c 100644 --- a/lib/private/Files/Cache/StorageGlobal.php +++ b/lib/private/Files/Cache/StorageGlobal.php @@ -21,6 +21,7 @@ use OCP\IDBConnection; * A mapping between the two storage ids is stored in the database and accessible through this class * * @package OC\Files\Cache + * @psalm-api */ class StorageGlobal { /** @var array */ diff --git a/lib/private/Settings/AuthorizedGroup.php b/lib/private/Settings/AuthorizedGroup.php index 75befbc02cd..284c3ae42ce 100644 --- a/lib/private/Settings/AuthorizedGroup.php +++ b/lib/private/Settings/AuthorizedGroup.php @@ -16,6 +16,8 @@ use OCP\AppFramework\Db\Entity; * @method setClass(string $class) * @method string getGroupId() * @method string getClass() + * + * @psalm-api - we cannot use final as this will break unit tests */ class AuthorizedGroup extends Entity implements JsonSerializable { public $id; diff --git a/lib/private/Settings/AuthorizedGroupMapper.php b/lib/private/Settings/AuthorizedGroupMapper.php index 800dc5b8077..e057ab94c9d 100644 --- a/lib/private/Settings/AuthorizedGroupMapper.php +++ b/lib/private/Settings/AuthorizedGroupMapper.php @@ -21,6 +21,7 @@ use OCP\Server; /** * @template-extends QBMapper + * @psalm-api - we cannot use final as this will break unit tests */ class AuthorizedGroupMapper extends QBMapper { public function __construct(IDBConnection $db) { diff --git a/lib/private/Share20/ShareHelper.php b/lib/private/Share20/ShareHelper.php index 98c413b55b8..4b4e57ecb0b 100644 --- a/lib/private/Share20/ShareHelper.php +++ b/lib/private/Share20/ShareHelper.php @@ -16,6 +16,9 @@ use OCP\Share\IManager; use OCP\Share\IShareHelper; use Override; +/** + * @psalm-api - we cannot use final as this will break unit tests + */ class ShareHelper implements IShareHelper { public function __construct( private readonly IManager $shareManager,