Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Psalm doesn't understand unpacking #20

@fenric

Description

@fenric
->withHeader(...new HeaderWWWAuthenticate(HeaderWWWAuthenticate::HTTP_AUTHENTICATE_SCHEME_BEARER))
INFO: InvalidArgument - src/Middleware/ErrorHandlingMiddleware.php:111:29 - Method Psr\Http\Message\ResponseInterface::withHeader called with unpacked iterable Sunrise\Http\Header\HeaderWWWAuthenticate with invalid key (must be int|string) (see https://psalm.dev/004)
            ->withHeader(...new HeaderWWWAuthenticate(HeaderWWWAuthenticate::HTTP_AUTHENTICATE_SCHEME_BEARER));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions