From 870ce8332b799fce256ccb926058ecdb50d81267 Mon Sep 17 00:00:00 2001 From: Giancarlo Morales Date: Tue, 27 Dec 2022 16:24:00 -0500 Subject: [PATCH] Fix return null and bad construct param --- .../Interaction/Request/CreditmemoRequestBuilderInterface.php | 4 ++-- BaseProvider/Model/QueueRepository.php | 2 +- Framework/Interaction/Request/CreditmemoRequestBuilder.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Api/Framework/Interaction/Request/CreditmemoRequestBuilderInterface.php b/Api/Framework/Interaction/Request/CreditmemoRequestBuilderInterface.php index cda5aaad..094b97c6 100755 --- a/Api/Framework/Interaction/Request/CreditmemoRequestBuilderInterface.php +++ b/Api/Framework/Interaction/Request/CreditmemoRequestBuilderInterface.php @@ -15,8 +15,8 @@ interface CreditmemoRequestBuilderInterface * Creditmemo request builder * * @param CreditmemoInterface $creditmemo - * @return RequestInterface + * @return RequestInterface|null * @throws \Throwable */ - public function build(CreditmemoInterface $creditmemo): RequestInterface; + public function build(CreditmemoInterface $creditmemo): ?RequestInterface; } diff --git a/BaseProvider/Model/QueueRepository.php b/BaseProvider/Model/QueueRepository.php index f6cdcb4d..6cc6d91e 100644 --- a/BaseProvider/Model/QueueRepository.php +++ b/BaseProvider/Model/QueueRepository.php @@ -56,7 +56,7 @@ public function __construct( $this->QueueFactory = $QueueFactory; $this->QueueCollectionFactory = $QueueCollectionFactory; $this->searchResultFactory = $QueueSearchResultsInterfaceFactory; - $this->collectionProcessor = collectionProcessor; + $this->collectionProcessor = $collectionProcessor; } public function getList(SearchCriteriaInterface $searchCriteria) diff --git a/Framework/Interaction/Request/CreditmemoRequestBuilder.php b/Framework/Interaction/Request/CreditmemoRequestBuilder.php index 59e2a809..a64ab8ca 100755 --- a/Framework/Interaction/Request/CreditmemoRequestBuilder.php +++ b/Framework/Interaction/Request/CreditmemoRequestBuilder.php @@ -240,7 +240,7 @@ public function __construct( * @return RequestInterface|null * @throws \Throwable */ - public function build(CreditmemoInterface $creditmemo): RequestInterface + public function build(CreditmemoInterface $creditmemo): ?RequestInterface { try { /** @var Order $order */