Skip to content

Commit

Permalink
Merge pull request #37 from Dutchento/request-message-type-fix
Browse files Browse the repository at this point in the history
Keep request_message a Phrase object instead of coercing string
  • Loading branch information
Timon de Groot authored Feb 5, 2021
2 parents 406728c + ce6a544 commit 3132492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Plugin/Magento/Customer/Model/Vat.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Dutchento\Vatfallback\Service\ValidateVatInterface;
use Magento\Customer\Model\Vat as Subject;
use Magento\Framework\DataObject;
use Magento\Framework\Phrase;

/**
* Class Vat
Expand Down Expand Up @@ -97,11 +98,11 @@ public function aroundCheckVatNumber(
/**
* @param string $vatNumber
* @param bool $success
* @param string $message
* @param Phrase $message
* @return DataObject
* @throws \Exception
*/
public function createGatewayResponseObject(string $vatNumber, bool $isValid, string $message): DataObject
public function createGatewayResponseObject(string $vatNumber, bool $isValid, Phrase $message): DataObject
{
return new DataObject([
'is_valid' => $isValid,
Expand Down

0 comments on commit 3132492

Please sign in to comment.