Add user
option to Redis
adapter to authenticate with a specific user
#287
continuous-integration.yml
on: pull_request
Generate job matrix
5s
Matrix: QA Checks
Annotations
10 errors
InvalidReturnType:
src/RedisResourceManager.php#L70
src/RedisResourceManager.php:70:16: InvalidReturnType: The declared return type 'string' for Laminas\Cache\Storage\Adapter\RedisResourceManager::getVersion is incorrect, got 'int|string' (see https://psalm.dev/011)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L78
src/RedisResourceManager.php:78:16: PossiblyUndefinedArrayOffset: Possibly undefined array key $this->resources[$resourceId]['version'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
InvalidReturnStatement:
src/RedisResourceManager.php#L78
src/RedisResourceManager.php:78:16: InvalidReturnStatement: The inferred type 'int|string' does not match the declared return type 'string' for Laminas\Cache\Storage\Adapter\RedisResourceManager::getVersion (see https://psalm.dev/128)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L93
src/RedisResourceManager.php:93:22: PossiblyUndefinedArrayOffset: Possibly undefined array key $this->resources[$resourceId]['version'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L123
src/RedisResourceManager.php:123:16: PossiblyUndefinedArrayOffset: Possibly undefined array key $resource['database'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L139
src/RedisResourceManager.php:139:16: PossiblyUndefinedArrayOffset: Possibly undefined array key $resource['password'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L169
src/RedisResourceManager.php:169:13: PossiblyUndefinedArrayOffset: Possibly undefined array key $resource['resource'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
RedundantConditionGivenDocblockType:
src/RedisResourceManager.php#L169
src/RedisResourceManager.php:169:13: RedundantConditionGivenDocblockType: Docblock-defined type Redis for $resource['resource'] is always Redis (see https://psalm.dev/156)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L171
src/RedisResourceManager.php:171:19: PossiblyUndefinedArrayOffset: Possibly undefined array key $resource['initialized'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|
PossiblyUndefinedArrayOffset:
src/RedisResourceManager.php#L175
src/RedisResourceManager.php:175:19: PossiblyUndefinedArrayOffset: Possibly undefined array key $resource['version'] on array{database?: non-empty-string, initialized?: bool, lib_options?: array<array-key, mixed>, password?: non-empty-string, persistent_id?: non-empty-string, resource?: Redis, server?: non-empty-string, user?: non-empty-string|null, version?: int|string} (see https://psalm.dev/167)
|