Skip to content

Capsule 3.0

Capsule 3.0 #8

Triggered via pull request October 27, 2023 22:45
@brentschefflerbrentscheffler
synchronize #3
3.0
Status Failure
Total duration 27s
Artifacts

php.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

4 errors
InvalidReturnType: src/Factory/UploadedFileFactory.php#L60
src/Factory/UploadedFileFactory.php:60:13: InvalidReturnType: The declared return type 'array<array-key, Nimbly\Capsule\UploadedFile>' for Nimbly\Capsule\Factory\UploadedFileFactory::createFromGlobals is incorrect, got 'array<string, Psr\Http\Message\UploadedFileInterface|array<array-key, Nimbly\Capsule\UploadedFile|mixed>>' (see https://psalm.dev/011)
InvalidArgument: src/Factory/UploadedFileFactory.php#L155
src/Factory/UploadedFileFactory.php:155:48: InvalidArgument: Argument 1 of Nimbly\Capsule\Factory\UploadedFileFactory::createFromGlobal expects array{error: int, name: string, size: int, tmp_name: string, type: string}, but array{tmp_name: mixed, ...<array-key, mixed>} provided (see https://psalm.dev/004)
InvalidReturnStatement: src/Factory/UploadedFileFactory.php#L167
src/Factory/UploadedFileFactory.php:167:10: InvalidReturnStatement: The inferred type 'array<string, Psr\Http\Message\UploadedFileInterface|array<array-key, Nimbly\Capsule\UploadedFile|mixed>>' does not match the declared return type 'array<array-key, Nimbly\Capsule\UploadedFile>' for Nimbly\Capsule\Factory\UploadedFileFactory::createFromGlobals (see https://psalm.dev/128)
build (8.2)
Process completed with exit code 2.