Skip to content

Commit 213e564

Browse files
minor #51518 [HttpClient] Fix Static Code Analyzer issue with JsonMockResponse (alexander-schranz)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [HttpClient] Fix Static Code Analyzer issue with JsonMockResponse | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes (only Static Code Analyzer) | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> The `JsonMockResponse` will inherit the `PHPDoc` from the MockResponse class when not explicit defined. See https://phpstan.org/r/a3174b75-4b0c-4c15-918f-afdfab4da7a4 Commits ------- c4756df009 [HttpClient] Fix Static Code Analyzer issue with JsonMockResponse
2 parents bd0d143 + de9046b commit 213e564

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Response/JsonMockResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
class JsonMockResponse extends MockResponse
1717
{
18+
/**
19+
* @param mixed $body Any value that `json_encode()` can serialize
20+
*/
1821
public function __construct(mixed $body = [], array $info = [])
1922
{
2023
try {

0 commit comments

Comments
 (0)