Skip to content

Remove usage of static vars or properties #75795

Remove usage of static vars or properties

Remove usage of static vars or properties #75795

Triggered via pull request March 24, 2026 13:23
Status Failure
Total duration 10m 49s
Artifacts

static-code-analysis.yml

on: pull_request
static-code-analysis
3m 15s
static-code-analysis
static-code-analysis-security
10m 45s
static-code-analysis-security
static-code-analysis-ocp
1m 2s
static-code-analysis-ocp
static-code-analysis-ncu
1m 18s
static-code-analysis-ncu
static-code-analysis-strict
52s
static-code-analysis-strict
Fit to window
Zoom out
Zoom in

Annotations

17 errors
ImpureStaticVariable: apps/user_ldap/lib/Access.php#L486
apps/user_ldap/lib/Access.php:486:3: ImpureStaticVariable: Static var should not be used as they do not follow requests lifecycle and are hard to reset (see https://psalm.dev/210)
InvalidArrayOffset: apps/files_versions/lib/Storage.php#L800
apps/files_versions/lib/Storage.php:800:14: InvalidArrayOffset: Cannot access value on variable OCA\Files_Versions\Storage::MAX_VERSIONS_PER_INTERVAL using a int<2, max> offset, expecting 1|2|3|4|5|6 (see https://psalm.dev/115)
TypeDoesNotContainType: apps/files_versions/lib/Storage.php#L767
apps/files_versions/lib/Storage.php:767:7: TypeDoesNotContainType: Type 10 for OCA\Files_Versions\Storage::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'] is never =int(-1) (see https://psalm.dev/056)
TypeDoesNotContainType: apps/files_versions/lib/Storage.php#L767
apps/files_versions/lib/Storage.php:767:7: TypeDoesNotContainType: -1 cannot be identical to 10 (see https://psalm.dev/056)
ImpureStaticProperty: apps/files_versions/lib/Storage.php#L79
apps/files_versions/lib/Storage.php:79:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
ImpureStaticProperty: apps/files_versions/lib/Storage.php#L61
apps/files_versions/lib/Storage.php:61:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
ImpureStaticProperty: apps/files_versions/lib/Storage.php#L59
apps/files_versions/lib/Storage.php:59:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
ImpureStaticProperty: apps/files_sharing/lib/SharedStorage.php#L91
apps/files_sharing/lib/SharedStorage.php:91:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
ImpureStaticProperty: apps/files_external/lib/MountConfig.php#L38
apps/files_external/lib/MountConfig.php:38:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
ImpureStaticProperty: apps/encryption/lib/Crypto/Encryption.php#L59
apps/encryption/lib/Crypto/Encryption.php:59:2: ImpureStaticProperty: Static property should not be used as they do not follow requests lifecycle (see https://psalm.dev/221)
TaintedCallable: lib/private/ServerContainer.php#L89
lib/private/ServerContainer.php:89:17: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
TaintedHtml: lib/private/Mail/Mailer.php#L229
lib/private/Mail/Mailer.php:229:72: TaintedHtml: Detected tainted HTML (see https://psalm.dev/245)
TaintedHtml: lib/private/Mail/Mailer.php#L209
lib/private/Mail/Mailer.php:209:83: TaintedHtml: Detected tainted HTML (see https://psalm.dev/245)
TaintedCallable: lib/private/AppFramework/Utility/SimpleContainer.php#L126
lib/private/AppFramework/Utility/SimpleContainer.php:126:33: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
TaintedCallable: apps/workflowengine/lib/Manager.php#L503
apps/workflowengine/lib/Manager.php:503:39: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
TaintedCallable: apps/workflowengine/lib/Manager.php#L470
apps/workflowengine/lib/Manager.php:470:38: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
TaintedCallable: apps/workflowengine/lib/Manager.php#L428
apps/workflowengine/lib/Manager.php:428:38: TaintedCallable: Detected tainted text (see https://psalm.dev/243)