Skip to content

Commit

Permalink
do not wrap combines factory instances like GuzzleHttp\Psr7\HttpFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Sep 20, 2023
1 parent 45a504b commit e66baac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Redmine/Client/Psr18Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
string $apikeyOrUsername,
string $password = null
) {
if ($requestFactory instanceof ServerRequestFactoryInterface) {
if (! $requestFactory instanceof RequestFactoryInterface && $requestFactory instanceof ServerRequestFactoryInterface) {
@trigger_error(
sprintf(
'%s(): Providing Argument #2 ($requestFactory) as %s is deprecated since v2.3.0, please provide as %s instead.',
Expand Down

0 comments on commit e66baac

Please sign in to comment.