Skip to content

Add user option to Redis adapter to authenticate with a specific user #288

Add user option to Redis adapter to authenticate with a specific user

Add user option to Redis adapter to authenticate with a specific user #288

Triggered via pull request May 21, 2024 08:14
Status Failure
Total duration 2m 58s
Artifacts

continuous-integration.yml

on: pull_request
Generate job matrix
6s
Generate job matrix
Matrix: QA Checks
Fit to window
Zoom out
Zoom in

Annotations

10 errors
RedundantCondition: src/RedisResourceManager.php#L177
src/RedisResourceManager.php:177:17: RedundantCondition: Type Redis for $redis is always Redis (see https://psalm.dev/122)
InvalidArgument: src/RedisResourceManager.php#L422
src/RedisResourceManager.php:422:60: InvalidArgument: Argument 1 of Laminas\Cache\Storage\Adapter\RedisResourceManager::extractPassword expects array{database: int, initialized: bool, lib_options: array<int<0, max>, mixed>, password: null|string, persistent_id: string, resource: Redis|null, server: array{host: string, port: int, timeout: int}, user: null|string, version: string}, but array{database: 0|mixed, initialized: false|mixed, lib_options: array<never, never>|mixed, password: ''|mixed, persistent_id: ''|mixed, resource: mixed|null, server: array<never, never>|mixed, user: ''|mixed, version: '0.0.0-unknown'|mixed, ...<array-key, mixed>} provided (see https://psalm.dev/004)
InvalidArgument: src/RedisResourceManager.php#L423
src/RedisResourceManager.php:423:56: InvalidArgument: Argument 1 of Laminas\Cache\Storage\Adapter\RedisResourceManager::extractUser expects array{database: int, initialized: bool, lib_options: array<int<0, max>, mixed>, password: null|string, persistent_id: string, resource: Redis|null, server: array{host: string, port: int, timeout: int}, user: null|string, version: string}, but array{database: 0|mixed, initialized: false|mixed, lib_options: array<never, never>|mixed, password: null|string, persistent_id: ''|mixed, resource: mixed|null, server: array<never, never>|mixed, user: ''|mixed, version: '0.0.0-unknown'|mixed, ...<array-key, mixed>} provided (see https://psalm.dev/004)
MixedArgument: src/RedisResourceManager.php#L425
src/RedisResourceManager.php:425:36: MixedArgument: Argument 1 of Laminas\Cache\Storage\Adapter\RedisResourceManager::normalizeServer cannot be array<never, never>|mixed, expecting array<array-key, mixed>|string (see https://psalm.dev/030)
InvalidPropertyAssignmentValue: src/RedisResourceManager.php#L440
src/RedisResourceManager.php:440:9: InvalidPropertyAssignmentValue: $this->resources with declared type 'array<string, array{database: int, initialized: bool, lib_options: array<int<0, max>, mixed>, password: null|string, persistent_id: string, resource: Redis|null, server: array{host: string, port: int, timeout: int}, user: null|string, version: string}>' cannot be assigned type 'non-empty-array<string, array{database: int|mixed, initialized: bool|mixed, lib_options: array<int<0, max>, mixed>|mixed, password: null|string, persistent_id: mixed|string, resource: Redis|mixed|null, server: array{host: string, port: int, timeout: int}|mixed, user: null|string, version: mixed|string, ...<array-key, mixed>}>' (see https://psalm.dev/145)
RedundantCondition: src/RedisResourceManager.php#L538
src/RedisResourceManager.php:538:9: RedundantCondition: Type Redis for $redis is always Redis (see https://psalm.dev/122)
MixedArgument: src/RedisResourceManager.php#L572
src/RedisResourceManager.php:572:81: MixedArgument: Argument 1 of Redis::getOption cannot be mixed, expecting int (see https://psalm.dev/030)
UnsupportedPropertyReferenceUsage: src/RedisResourceManager.php#L745
src/RedisResourceManager.php:745:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: src/RedisResourceManager.php#L793
src/RedisResourceManager.php:793:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnusedBaselineEntry: src/RedisOptions.php#L1
src/RedisOptions.php:0:0: UnusedBaselineEntry: Baseline for issue "InvalidReturnStatement" has 1 extra entry. (see https://psalm.dev/316)