Contexts API #164
psalm-matrix.yml
on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
4s
Annotations
13 errors and 20 warnings
UndefinedClass:
lib/Command/ListContexts.php#L17
lib/Command/ListContexts.php:17:28: UndefinedClass: Class, interface or enum named OC\Core\Command\Base does not exist (see https://psalm.dev/019)
|
InvalidTemplateParam:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: InvalidTemplateParam: Extended template param S of OCP\AppFramework\Http\DataResponse<OCA\Tables\Controller\Http::STATUS_OK, array<array-key, array{description: string, iconName: string, id: int, name: string, owner: string, ownerType: int}>, array<never, never>> expects type int, type OCA\Tables\Controller\Http::STATUS_OK given (see https://psalm.dev/183)
|
UndefinedDocblockClass:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Tables\Controller\Http does not exist (see https://psalm.dev/200)
|
InvalidTemplateParam:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: InvalidTemplateParam: Extended template param S of OCP\AppFramework\Http\DataResponse<OCA\Tables\Controller\Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array<never, never>> expects type int, type OCA\Tables\Controller\Http::STATUS_INTERNAL_SERVER_ERROR given (see https://psalm.dev/183)
|
MissingTemplateParam:
lib/Db/ContextMapper.php#L11
lib/Db/ContextMapper.php:11:7: MissingTemplateParam: OCA\Tables\Db\ContextMapper has missing template params when extending OCP\AppFramework\Db\QBMapper, expecting 1 (see https://psalm.dev/182)
|
static-psalm-analysis dev-master
Process completed with exit code 2.
|
UndefinedClass:
lib/Command/ListContexts.php#L17
lib/Command/ListContexts.php:17:28: UndefinedClass: Class, interface or enum named OC\Core\Command\Base does not exist (see https://psalm.dev/019)
|
InvalidTemplateParam:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: InvalidTemplateParam: Extended template param S of OCP\AppFramework\Http\DataResponse<OCA\Tables\Controller\Http::STATUS_OK, array<array-key, array{description: string, iconName: string, id: int, name: string, owner: string, ownerType: int}>, array<never, never>> expects type int, type OCA\Tables\Controller\Http::STATUS_OK given (see https://psalm.dev/183)
|
UndefinedDocblockClass:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Tables\Controller\Http does not exist (see https://psalm.dev/200)
|
InvalidTemplateParam:
lib/Controller/ContextsController.php#L39
lib/Controller/ContextsController.php:39:13: InvalidTemplateParam: Extended template param S of OCP\AppFramework\Http\DataResponse<OCA\Tables\Controller\Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array<never, never>> expects type int, type OCA\Tables\Controller\Http::STATUS_INTERNAL_SERVER_ERROR given (see https://psalm.dev/183)
|
MissingTemplateParam:
lib/Db/ContextMapper.php#L11
lib/Db/ContextMapper.php:11:7: MissingTemplateParam: OCA\Tables\Db\ContextMapper has missing template params when extending OCP\AppFramework\Db\QBMapper, expecting 1 (see https://psalm.dev/182)
|
static-psalm-analysis dev-stable28
Process completed with exit code 2.
|
static-psalm-analysis-summary
Process completed with exit code 1.
|
PossiblyNullArgument:
lib/Api/V1Api.php#L43
lib/Api/V1Api.php:43:54: PossiblyNullArgument: Argument 2 of OCA\Tables\Service\RowService::findAllByView cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
lib/Api/V1Api.php#L47
lib/Api/V1Api.php:47:55: PossiblyNullArgument: Argument 2 of OCA\Tables\Service\RowService::findAllByTable cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullIterator:
lib/Api/V1Api.php#L65
lib/Api/V1Api.php:65:14: PossiblyNullIterator: Cannot iterate over nullable var array<array-key, mixed>|null (see https://psalm.dev/097)
|
PropertyNotSetInConstructor:
lib/Command/Clean.php#L59
lib/Command/Clean.php:59:26: PropertyNotSetInConstructor: Property OCA\Tables\Command\Clean::$output is not defined in constructor of OCA\Tables\Command\Clean or in any private or final methods called in the constructor (see https://psalm.dev/074)
|
PossiblyNullArgument:
lib/Command/Clean.php#L116
lib/Command/Clean.php:116:52: PossiblyNullArgument: Argument 1 of OCA\Tables\Service\ColumnService::findAllByTable cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullPropertyAssignmentValue:
lib/Command/Clean.php#L118
lib/Command/Clean.php:118:20: PossiblyNullPropertyAssignmentValue: $this->offset with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
|
PossiblyNullOperand:
lib/Command/Clean.php#L137
lib/Command/Clean.php:137:47: PossiblyNullOperand: Cannot concatenate with a possibly null int|null (see https://psalm.dev/080)
|
PossiblyNullIterator:
lib/Command/Clean.php#L147
lib/Command/Clean.php:147:12: PossiblyNullIterator: Cannot iterate over nullable var array<array-key, mixed>|null (see https://psalm.dev/097)
|
PossiblyNullReference:
lib/Command/Clean.php#L147
lib/Command/Clean.php:147:24: PossiblyNullReference: Cannot call method getData on possibly null value (see https://psalm.dev/083)
|
PossiblyNullOperand:
lib/Command/Clean.php#L165
lib/Command/Clean.php:165:87: PossiblyNullOperand: Cannot concatenate with a possibly null int|null (see https://psalm.dev/080)
|
PossiblyNullArgument:
lib/Api/V1Api.php#L43
lib/Api/V1Api.php:43:54: PossiblyNullArgument: Argument 2 of OCA\Tables\Service\RowService::findAllByView cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
lib/Api/V1Api.php#L47
lib/Api/V1Api.php:47:55: PossiblyNullArgument: Argument 2 of OCA\Tables\Service\RowService::findAllByTable cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullIterator:
lib/Api/V1Api.php#L65
lib/Api/V1Api.php:65:14: PossiblyNullIterator: Cannot iterate over nullable var array<array-key, mixed>|null (see https://psalm.dev/097)
|
PropertyNotSetInConstructor:
lib/Command/Clean.php#L59
lib/Command/Clean.php:59:26: PropertyNotSetInConstructor: Property OCA\Tables\Command\Clean::$output is not defined in constructor of OCA\Tables\Command\Clean or in any private or final methods called in the constructor (see https://psalm.dev/074)
|
PossiblyNullArgument:
lib/Command/Clean.php#L116
lib/Command/Clean.php:116:52: PossiblyNullArgument: Argument 1 of OCA\Tables\Service\ColumnService::findAllByTable cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullPropertyAssignmentValue:
lib/Command/Clean.php#L118
lib/Command/Clean.php:118:20: PossiblyNullPropertyAssignmentValue: $this->offset with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
|
PossiblyNullOperand:
lib/Command/Clean.php#L137
lib/Command/Clean.php:137:47: PossiblyNullOperand: Cannot concatenate with a possibly null int|null (see https://psalm.dev/080)
|
PossiblyNullIterator:
lib/Command/Clean.php#L147
lib/Command/Clean.php:147:12: PossiblyNullIterator: Cannot iterate over nullable var array<array-key, mixed>|null (see https://psalm.dev/097)
|
PossiblyNullReference:
lib/Command/Clean.php#L147
lib/Command/Clean.php:147:24: PossiblyNullReference: Cannot call method getData on possibly null value (see https://psalm.dev/083)
|
PossiblyNullOperand:
lib/Command/Clean.php#L165
lib/Command/Clean.php:165:87: PossiblyNullOperand: Cannot concatenate with a possibly null int|null (see https://psalm.dev/080)
|