Skip to content

Commit

Permalink
RATESWSX-292: fix rector issues
Browse files Browse the repository at this point in the history
issues does only occurs on sw 6.5.x
  • Loading branch information
rommelfreddy committed Feb 7, 2024
1 parent cdfb83b commit 1879cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/DeviceFingerprint/DfpService.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function isDfpIdValid(OrderEntity|SalesChannelContext $baseData, string $
$prefix = $this->getDfpPrefix($baseData);

// verify if the prefix is at the beginning of the id
return str_starts_with($dfpId, $prefix);
return str_starts_with((string) $dfpId, $prefix);
}

public function getDfpSnippet(Request $request, OrderEntity|SalesChannelContext $baseData): ?string
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Logging/Service/ApiLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function logRequest(RequestDoneEvent $requestDoneEvent): void

// remove sensitive data
foreach (['securitycode', 'owner', 'iban'] as $key) {
$requestXml = preg_replace(sprintf('/<%s>(.*)<\/%s>/', $key, $key), sprintf('<%s>xxxxxxxx</%s>', $key, $key), $requestXml);
$requestXml = preg_replace(sprintf('/<%s>(.*)<\/%s>/', $key, $key), sprintf('<%s>xxxxxxxx</%s>', $key, $key), (string) $requestXml);
}

$reasonNode = $requestBuilder->getResponseXmlElement()->head->processing->reason;
Expand Down

0 comments on commit 1879cd5

Please sign in to comment.