Skip to content

Commit ed09e0a

Browse files
authored
Fix MakesHttpRequests::call() return type (#1239)
Static analysis of a method using `call()` fails with the following error: ``` ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- Line src/Testing/MakesGraphQLRequests.php (in context of class Tests\Unit\Testing\TestingTraitDummy) ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- 100 Method Tests\Unit\Testing\TestingTraitDummy::multipartGraphQL() should return Illuminate\Testing\TestResponse but returns Illuminate\Http\Response. ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- ```
1 parent 06ad0d3 commit ed09e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testing/Concerns/MakesHttpRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected function formatToExpectedJson($key, $value)
344344
* @param array $files
345345
* @param array $server
346346
* @param string $content
347-
* @return \Illuminate\Http\Response
347+
* @return \Illuminate\Testing\TestResponse
348348
*/
349349
public function call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
350350
{

0 commit comments

Comments
 (0)