Skip to content

Commit b213f37

Browse files
committed
Fix JsonEndpoint PHPStan check
1 parent 16d871b commit b213f37

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ parameters:
1010
count: 1
1111
path: src/AbstractApi.php
1212

13+
-
14+
message: "#^Method WrkFlow\\\\ApiSdkBuilderTests\\\\TestApi\\\\Endpoints\\\\Json\\\\JsonEndpoint\\:\\:phpStanShouldReportThis\\(\\) should return WrkFlow\\\\ApiSdkBuilderTests\\\\TestApi\\\\Endpoints\\\\Json\\\\JsonResponse but returns WrkFlow\\\\ApiSdkBuilder\\\\Responses\\\\AbstractResponse\\.$#"
15+
count: 1
16+
path: tests/TestApi/Endpoints/Json/JsonEndpoint.php
17+

tests/TestApi/Endpoints/Json/JsonEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function failOnServer(): JsonResponse
5252
*/
5353
public function phpStanShouldReportThis(): JsonResponse
5454
{
55-
return $this->sendGet(responseClass: JsonResponse::class, uri: $this->uri(), headers: $this->headers());
55+
return $this->sendGet(responseClass: AbstractResponse::class, uri: $this->uri(), headers: $this->headers());
5656
}
5757

5858
protected function basePath(): string

0 commit comments

Comments
 (0)