Skip to content

refactor/introduce IContext #15025

refactor/introduce IContext

refactor/introduce IContext #15025

Triggered via pull request September 1, 2026 02:58
Status Failure
Total duration 37s
Artifacts

psalm.yml

on: pull_request
static-psalm-analysis
34s
static-psalm-analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
PossiblyUndefinedVariable: lib/Service/DocumentService.php#L402
lib/Service/DocumentService.php:402:39: PossiblyUndefinedVariable: Possibly undefined variable $file, first seen on line 386 (see https://psalm.dev/018)
InvalidArgument: lib/Context/FileContextFactory.php#L50
lib/Context/FileContextFactory.php:50:4: InvalidArgument: Argument 8 of OCA\Text\Context\FileContext::__construct expects int, but OCP\Files\File|null provided (see https://psalm.dev/004)
InvalidScalarArgument: lib/Context/FileContextFactory.php#L49
lib/Context/FileContextFactory.php:49:4: InvalidScalarArgument: Argument 7 of OCA\Text\Context\FileContext::__construct expects string, but int provided (see https://psalm.dev/012)
InvalidArgument: lib/Context/FileContextFactory.php#L48
lib/Context/FileContextFactory.php:48:4: InvalidArgument: Argument 6 of OCA\Text\Context\FileContext::__construct expects OCP\IUser|OCP\Share\IShare, but string provided (see https://psalm.dev/004)
InvalidArgument: lib/Context/FileContextFactory.php#L47
lib/Context/FileContextFactory.php:47:4: InvalidArgument: Argument 5 of OCA\Text\Context\FileContext::__construct expects Psr\Log\LoggerInterface, but OCP\IUser|OCP\Share\IShare|OCP\Share\IShare&OCP\IUser provided (see https://psalm.dev/004)
InvalidArgument: lib/Context/FileContextFactory.php#L46
lib/Context/FileContextFactory.php:46:4: InvalidArgument: Argument 4 of OCA\Text\Context\FileContext::__construct expects OCA\Text\Service\LockService, but Psr\Log\LoggerInterface provided (see https://psalm.dev/004)
InvalidArgument: lib/Context/FileContextFactory.php#L45
lib/Context/FileContextFactory.php:45:4: InvalidArgument: Argument 3 of OCA\Text\Context\FileContext::__construct expects OCP\IL10N, but OCA\Text\Service\LockService provided (see https://psalm.dev/004)
InvalidArgument: lib/Context/FileContextFactory.php#L44
lib/Context/FileContextFactory.php:44:4: InvalidArgument: Argument 2 of OCA\Text\Context\FileContext::__construct expects OCA\Text\Service\FileService, but OCP\IL10N provided (see https://psalm.dev/004)
InvalidArgument: lib/Context/FileContextFactory.php#L43
lib/Context/FileContextFactory.php:43:4: InvalidArgument: Argument 1 of OCA\Text\Context\FileContext::__construct expects OCA\Text\Db\DocumentMapper, but OCA\Text\Service\FileService provided (see https://psalm.dev/004)
TooFewArguments: lib/Context/FileContextFactory.php#L42
lib/Context/FileContextFactory.php:42:10: TooFewArguments: Too few arguments for OCA\Text\Context\FileContext::__construct - expecting file to be passed (see https://psalm.dev/025)
static-psalm-analysis
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/