diff --git a/src/SDK/Common/Adapter/HttpDiscovery/DependencyResolver.php b/src/SDK/Common/Adapter/HttpDiscovery/DependencyResolver.php index 5b5285a09..b1fd40b79 100644 --- a/src/SDK/Common/Adapter/HttpDiscovery/DependencyResolver.php +++ b/src/SDK/Common/Adapter/HttpDiscovery/DependencyResolver.php @@ -25,9 +25,9 @@ final class DependencyResolver implements DependencyResolverInterface private HttpPlugClientResolverInterface $httpPlugClientResolver; public function __construct( - ?MessageFactoryResolverInterface $messageFactoryResolver, - ?PsrClientResolverInterface $psrClientResolver, - ?HttpPlugClientResolverInterface $httpPlugClientResolver + ?MessageFactoryResolverInterface $messageFactoryResolver = null, + ?PsrClientResolverInterface $psrClientResolver = null, + ?HttpPlugClientResolverInterface $httpPlugClientResolver = null ) { $this->messageFactoryResolver = $messageFactoryResolver ?? MessageFactoryResolver::create(); $this->psrClientResolver = $psrClientResolver ?? PsrClientResolver::create(); @@ -35,9 +35,9 @@ public function __construct( } public static function create( - ?MessageFactoryResolverInterface $messageFactoryResolver, - ?PsrClientResolverInterface $psrClientResolver, - ?HttpPlugClientResolverInterface $httpPlugClientResolver + ?MessageFactoryResolverInterface $messageFactoryResolver = null, + ?PsrClientResolverInterface $psrClientResolver = null, + ?HttpPlugClientResolverInterface $httpPlugClientResolver = null ): self { return new self($messageFactoryResolver, $psrClientResolver, $httpPlugClientResolver); }