Skip to content

Update code to PHP 8 #190

Update code to PHP 8

Update code to PHP 8 #190

Triggered via pull request October 14, 2024 19:05
Status Failure
Total duration 44s
Artifacts

code-quality.yml

on: pull_request
Matrix: Code quality checks
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
MoreSpecificReturnType: src/Map/BaseMap.php#L89
src/Map/BaseMap.php:89:16: MoreSpecificReturnType: The declared return type 'list<int|string>' for FileEye\MimeMap\Map\BaseMap::listEntries is more specific than the inferred return type 'array<int<0, max>, int|string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Map/BaseMap.php#L104
src/Map/BaseMap.php:104:20: LessSpecificReturnStatement: The type 'array<int<0, max>, int|string>' is more general than the declared return type 'list<int|string>' for FileEye\MimeMap\Map\BaseMap::listEntries (see https://psalm.dev/129)
MoreSpecificReturnType: src/Map/BaseMap.php#L136
src/Map/BaseMap.php:136:16: MoreSpecificReturnType: The declared return type 'list<string>' for FileEye\MimeMap\Map\BaseMap::getMapSubEntry is more specific than the inferred return type 'array<int, string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Map/BaseMap.php#L141
src/Map/BaseMap.php:141:16: LessSpecificReturnStatement: The type 'array<int, string>' is more general than the declared return type 'list<string>' for FileEye\MimeMap\Map\BaseMap::getMapSubEntry (see https://psalm.dev/129)
Code quality checks (8.1)
Process completed with exit code 2.
Code quality checks (8.1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/