The expression return $payload->get('download_url') could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
26
}
27
28
protected function getMethod(): string
29
{
30
return 'GET';
31
}
32
33
protected function doSomething(Rocket $rocket): void