File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Added
1111
12- - Allow ` Psr\Http\Message\ServerRequestFactoryInterface ` as Argument #2 ($requestFactory) in ` Redmine\Client\Psr18Client::__construct() `
12+ - Allow ` Psr\Http\Message\RequestFactoryInterface ` as Argument #2 ($requestFactory) in ` Redmine\Client\Psr18Client::__construct() `
1313- Added support for PHP 8.2
1414
1515### Deprecated
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function __construct(
4343 string $ apikeyOrUsername ,
4444 string $ password = null
4545 ) {
46- if ($ requestFactory instanceof ServerRequestFactoryInterface) {
46+ if (! $ requestFactory instanceof RequestFactoryInterface && $ requestFactory instanceof ServerRequestFactoryInterface) {
4747 @trigger_error (
4848 sprintf (
4949 '%s(): Providing Argument #2 ($requestFactory) as %s is deprecated since v2.3.0, please provide as %s instead. ' ,
You can’t perform that action at this time.
0 commit comments