Skip to content

fixing some aftermath #5272

fixing some aftermath

fixing some aftermath #5272

Triggered via pull request October 8, 2024 07:46
Status Failure
Total duration 1m 31s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Psalm
Fit to window
Zoom out
Zoom in

Annotations

8 errors
PossiblyUnusedProperty: lib/Model/UserBase.php#L58
lib/Model/UserBase.php:58:19: PossiblyUnusedProperty: Cannot find any references to property OCA\Polls\Model\UserBase::$icon (see https://psalm.dev/149)
InvalidReturnType: lib/Model/UserBase.php#L304
lib/Model/UserBase.php:304:19: InvalidReturnType: The declared return type 'array{categories: array<array-key, string>, desc: string, displayName: string, emailAddress: string, icon: string, id: string, isNoUser: bool, languageCode: string, localeCode: string, organisation: string, subName: string, subtitle: string, timeZone: string, type: string, user: string, userId: string}' for OCA\Polls\Model\UserBase::getRichUserArray is incorrect, got 'array{categories: array<array-key, string>, desc: string, displayName: string, emailAddress: string, id: string, isNoUser: bool, languageCode: string, localeCode: string, organisation: string, subName: string, subtitle: string, timeZone: string, type: string, userId: string}' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Model/UserBase.php#L307
lib/Model/UserBase.php:307:10: InvalidReturnStatement: The inferred type 'array{categories: array<array-key, string>, desc: string, displayName: string, emailAddress: string, id: string, isNoUser: bool, languageCode: string, localeCode: string, organisation: string, subName: string, subtitle: string, timeZone: string, type: string, userId: string}' does not match the declared return type 'array{categories: array<array-key, string>, desc: string, displayName: string, emailAddress: string, icon: string, id: string, isNoUser: bool, languageCode: string, localeCode: string, organisation: string, subName: string, subtitle: string, timeZone: string, type: string, user: string, userId: string}' for OCA\Polls\Model\UserBase::getRichUserArray (see https://psalm.dev/128)
MoreSpecificReturnType: lib/Model/UserBase.php#L334
lib/Model/UserBase.php:334:19: MoreSpecificReturnType: The declared return type 'array{categories: null, desc: null, displayName: string, emailAddress: string, icon: null, id: string, isNoUser: bool, languageCode: null, localeCode: null, organisation: null, subName: null, subtitle: null, timeZone: null, type: string, user: null}' for OCA\Polls\Model\UserBase::getSimpleUserArray is more specific than the inferred return type 'array{categories: null, desc: null, displayName: string, emailAddress: null|string, id: string, isNoUser: bool, languageCode: null, localeCode: null, organisation: null, subName: null, subtitle: null, timeZone: null, type: string}' (see https://psalm.dev/070)
LessSpecificReturnStatement: lib/Model/UserBase.php#L337
lib/Model/UserBase.php:337:10: LessSpecificReturnStatement: The type 'array{categories: null, desc: null, displayName: string, emailAddress: null|string, id: string, isNoUser: bool, languageCode: null, localeCode: null, organisation: null, subName: null, subtitle: null, timeZone: null, type: string}' is more general than the declared return type 'array{categories: null, desc: null, displayName: string, emailAddress: string, icon: null, id: string, isNoUser: bool, languageCode: null, localeCode: null, organisation: null, subName: null, subtitle: null, timeZone: null, type: string, user: null}' for OCA\Polls\Model\UserBase::getSimpleUserArray (see https://psalm.dev/129)
Psalm (master, 8.1)
Process completed with exit code 2.
Psalm (master, 8.2)
The job was canceled because "master_8_1" failed.
Psalm (master, 8.3)
The job was canceled because "master_8_1" failed.