From 1869d603d44af1b02f807b3ae4e3b5145b4daa88 Mon Sep 17 00:00:00 2001 From: Timo Michna Date: Tue, 28 Jun 2022 14:27:55 +0200 Subject: [PATCH] Fix dependency --- .../Adapter/HttpDiscovery/DependencyResolver.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }