You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed bug in the cookie plugin
* Fixed typo in phpdoc
* Clarified plugin client factory type information
* Added extra type information to help phpstan
* Don't temprarily violate property types in the flexible http client
* Removed redundent information
* Cast null to string for date parsing
* Added additional type to help phpstan
* Run phpstan on actions
if (!$clientinstanceof ClientInterface && !$clientinstanceof HttpAsyncClient && !$clientinstanceof HttpClientPoolItem) {
32
+
// no need to check for HttpClientPoolItem here, since it extends the other interfaces
33
+
if (!$clientinstanceof ClientInterface && !$clientinstanceof HttpAsyncClient) {
33
34
thrownew \TypeError(
34
-
sprintf('%s::addHttpClient(): Argument #1 ($client) must be of type %s|%s|%s, %s given', self::class, ClientInterface::class, HttpAsyncClient::class, HttpClientPoolItem::class, get_debug_type($client))
35
+
sprintf('%s::addHttpClient(): Argument #1 ($client) must be of type %s|%s, %s given', self::class, ClientInterface::class, HttpAsyncClient::class, get_debug_type($client))
0 commit comments