Skip to content

Narrow some more string types to non-empty-string #625

Narrow some more string types to non-empty-string

Narrow some more string types to non-empty-string #625

Triggered via pull request June 15, 2024 19:30
Status Failure
Total duration 1m 3s
Artifacts

continuous-integration.yml

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

Annotations

3 errors
MoreSpecificReturnType: src/Storage/AbstractMetadataCapableAdapter.php#L82
src/Storage/AbstractMetadataCapableAdapter.php:82:48: MoreSpecificReturnType: The declared return type 'array<int|non-empty-string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' for Laminas\Cache\Storage\AbstractMetadataCapableAdapter::getMetadatas is more specific than the inferred return type 'array<string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Storage/AbstractMetadataCapableAdapter.php#L115
src/Storage/AbstractMetadataCapableAdapter.php:115:20: LessSpecificReturnStatement: The type 'array<string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' is more general than the declared return type 'array<int|non-empty-string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' for Laminas\Cache\Storage\AbstractMetadataCapableAdapter::getMetadatas (see https://psalm.dev/129)
LessSpecificReturnStatement: src/Storage/AbstractMetadataCapableAdapter.php#L128
src/Storage/AbstractMetadataCapableAdapter.php:128:20: LessSpecificReturnStatement: The type 'array<string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' is more general than the declared return type 'array<int|non-empty-string, TMetadata:Laminas\Cache\Storage\AbstractMetadataCapableAdapter as object>' for Laminas\Cache\Storage\AbstractMetadataCapableAdapter::getMetadatas (see https://psalm.dev/129)