Skip to content

Commit

Permalink
Merge pull request #34 from mezzio/renovate/vimeo-psalm-5.x
Browse files Browse the repository at this point in the history
Update dependency vimeo/psalm to v5
  • Loading branch information
Ocramius authored Dec 1, 2022
2 parents 1640365 + e3911ac commit aef81d4
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 162 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"laminas/laminas-coding-standard": "~2.4.0",
"phpunit/phpunit": "^9.5.26",
"psalm/plugin-phpunit": "^0.18.0",
"vimeo/psalm": "^4.29"
"vimeo/psalm": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
176 changes: 92 additions & 84 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 11 additions & 28 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.29.0@7ec5ffbd5f68ae03782d7fd33fff0c45a69f95b3">
<files psalm-version="5.0.0@4e177bf0c9f03c17d2fbfd83b7cc9c47605274d8">
<file src="src/ProblemDetailsMiddleware.php">
<MissingClosureParamType occurrences="1">
<code>$listener</code>
Expand Down Expand Up @@ -34,28 +34,27 @@
<code>$payload['status']</code>
<code>$payload['status']</code>
</MixedArgument>
<MixedAssignment occurrences="3">
<MixedAssignment occurrences="4">
<code>$content</code>
<code>$return[$key]</code>
<code>$root</code>
<code>$value</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="2">
<MixedInferredReturnType occurrences="1">
<code>ResponseInterface</code>
<code>string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="2">
<code>$this-&gt;defaultTypesMap[$status] ?? sprintf('https://httpstatus.es/%s', $status)</code>
<MixedMethodCall occurrences="1">
<code>setAttribute</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="1">
<code>$this-&gt;getResponseGenerator($request)($payload)</code>
</MixedReturnStatement>
<PossiblyNullReference occurrences="1">
<code>setAttribute</code>
</PossiblyNullReference>
<UndefinedInterfaceMethod occurrences="1">
<code>getValue</code>
</UndefinedInterfaceMethod>
<UndefinedMethod occurrences="1">
<code>setAttribute</code>
</UndefinedMethod>
<UndefinedPropertyFetch occurrences="1">
<code>$dom-&gt;firstChild</code>
</UndefinedPropertyFetch>
</file>
<file src="src/ProblemDetailsResponseFactoryFactory.php">
<MixedArgument occurrences="4">
Expand Down Expand Up @@ -116,9 +115,6 @@
<code>$request</code>
<code>$response</code>
</MissingClosureParamType>
<MissingClosureReturnType occurrences="1">
<code>function ($error, $request, $response) use ($exception, $expected) {</code>
</MissingClosureReturnType>
<MixedInferredReturnType occurrences="1">
<code>array</code>
</MixedInferredReturnType>
Expand All @@ -144,12 +140,6 @@
</MixedOperand>
</file>
<file src="test/ProblemDetailsResponseFactoryTest.php">
<MissingReturnType occurrences="4">
<code>testCustomDetailMessageShouldBeVisible</code>
<code>testExceptionCodeShouldBeIgnoredAnd500ServedInResponseBodyInNonDebugMode</code>
<code>testFragileDataInExceptionMessageShouldBeHiddenInResponseBodyInNoDebugMode</code>
<code>testFragileDataInExceptionMessageShouldBeVisibleInResponseBodyInNonDebugModeWhenAllowToShowByFlag</code>
</MissingReturnType>
<MixedArgument occurrences="2">
<code>$payload['exception']</code>
<code>$payload['foo']</code>
Expand All @@ -165,13 +155,6 @@
<MixedAssignment occurrences="1">
<code>$payload</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="2">
<code>array</code>
<code>array</code>
</MixedInferredReturnType>
<TooManyArguments occurrences="1">
<code>Assert::arrayHasKey('malformed-utf8', $payload)</code>
</TooManyArguments>
</file>
<file src="test/TestAsset/RuntimeException.php">
<MixedAssignment occurrences="1">
Expand Down
1 change: 1 addition & 0 deletions src/ProblemDetailsResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class ProblemDetailsResponseFactory

/**
* @param (callable():ResponseInterface)|ResponseFactoryInterface $responseFactory
* @param array<int, string> $defaultTypesMap
*/
public function __construct(
$responseFactory,
Expand Down
Loading

0 comments on commit aef81d4

Please sign in to comment.