Narrow some more string types to non-empty-string
#625
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
11s
Matrix: ci / QA Checks
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)
|