Skip to content

Commit 57c8573

Browse files
committed
Fix psalm config move from psalm.xml to docBlock
1 parent c635e7f commit 57c8573

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

psalm.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,4 @@
1212
<directory name="vendor" />
1313
</ignoreFiles>
1414
</projectFiles>
15-
16-
<issueHandlers>
17-
<MixedArgument errorLevel="info" />
18-
<MixedArrayAccess errorLevel="info" />
19-
<MixedArrayOffset errorLevel="info" />
20-
<MixedReturnTypeCoercion errorLevel="info" />
21-
</issueHandlers>
2215
</psalm>

src/ErrorResponseGenerator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ final class ErrorResponseGenerator implements ErrorResponseGeneratorInterface
2424
{
2525
/**
2626
* {@inheritDoc}
27+
*
28+
* @psalm-suppress MixedArgument
29+
* @psalm-suppress MixedArrayAccess
2730
*/
2831
public function generate(Throwable $error, ServerRequestInterface $request): ResponseInterface
2932
{
@@ -85,6 +88,8 @@ private function getHtmlResponse(int $code, string $message): HtmlResponse
8588
/**
8689
* @param ServerRequestInterface $request
8790
* @return string[]
91+
* @psalm-suppress MixedArrayOffset
92+
* @psalm-suppress MixedReturnTypeCoercion
8893
*/
8994
private function getSortedMimeTypesByRequest(ServerRequestInterface $request): array
9095
{

0 commit comments

Comments
 (0)