Skip to content

Commit

Permalink
Fix MakesHttpRequests::call() return type (#1239)
Browse files Browse the repository at this point in the history
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.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
```
  • Loading branch information
spawnia authored Jul 8, 2022
1 parent 06ad0d3 commit ed09e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testing/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ protected function formatToExpectedJson($key, $value)
* @param array $files
* @param array $server
* @param string $content
* @return \Illuminate\Http\Response
* @return \Illuminate\Testing\TestResponse
*/
public function call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
{
Expand Down

0 comments on commit ed09e0a

Please sign in to comment.