Problem/Motivation
I have a class that extends HttpFetcher and at PHPStan level 2 (at least with my version of PHPStan) it complains about the return type of my subclass' get method. In the source that's given as \Guzzle\Http\Message\Response but it's actually \GuzzleHttp\Psr7\Response. When I give the return type in my subclass as the latter, PHPStan doesn't complain.
However, that might be dependent on the versions of PHPStan and Drupal. For me that's 2.3.7 and 11 respectively.
This could also be addressed in other issues; it'd be great if the get method would be given the feed object so I didn't need to duplicate the fetch method, and, since the reason I have the subclass is to send additional headers and there's also an issue for that it could be rolled into that issue.
Comments