File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ class HttpPluginClientBuilder
27
27
private $ pluginClient ;
28
28
/** @var RequestFactory|RequestFactoryInterface */
29
29
private $ requestFactory ;
30
+ /** @var StreamFactoryInterface */
30
31
private $ streamFactory ;
31
32
/** @var Plugin[] */
32
33
private $ plugins = [];
@@ -73,7 +74,7 @@ public function addPlugin(Plugin $plugin)
73
74
}
74
75
75
76
/**
76
- * @param string $pluginClass
77
+ * @param class- string $pluginClass
77
78
*/
78
79
public function removePlugin ($ pluginClass )
79
80
{
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public function testInvalidRequestFactory(): void
26
26
{
27
27
$ this ->expectException (\TypeError::class);
28
28
$ definitelyNotARequestFactory = new \stdClass ;
29
+ /** @phpstan-ignore-next-line We are passing in an invalid type on purpose. */
29
30
new HttpPluginClientBuilder (new MockClient , $ definitelyNotARequestFactory );
30
31
}
31
32
@@ -72,7 +73,9 @@ public function matches(RequestInterface $request): bool
72
73
public static function provideRequestFactories (): iterable
73
74
{
74
75
yield [null ];
76
+ // Http\Message\RequestFactory
75
77
yield [new GuzzleMessageFactory ];
78
+ // Psr\Http\Message\RequestFactoryInterface
76
79
yield [new HttpFactory ];
77
80
}
78
81
}
You can’t perform that action at this time.
0 commit comments