laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.47k stars 419 forks source link

[9.x] Fix `MakesHttpRequests::call()` return type #1239

Closed spawnia closed 2 years ago

spawnia commented 2 years ago

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.
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------