Skip to content

Commit

Permalink
[ECP-9582] Remove union return type (#2859)
Browse files Browse the repository at this point in the history
Co-authored-by: Can Demiralp <can.demiralp@adyen.com>
  • Loading branch information
candemiralp and Can Demiralp authored Jan 24, 2025
1 parent 9356fec commit cacef78
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

use Adyen\Payment\Logger\AdyenLogger;
use Exception;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Controller\ResultInterface;
use Magento\Framework\Exception\FileSystemException;
use Magento\Framework\Filesystem\DirectoryList;
use Magento\Backend\App\Action\Context;
use Magento\Framework\Controller\ResultFactory;
Expand All @@ -30,7 +28,7 @@ class DownloadApplePayDomainAssociationFile extends Action
const WELL_KNOWN_PATH = '.well-known';

public function __construct(
private readonly Context $context,
Context $context,
private readonly DirectoryList $directoryList,
private readonly File $fileIo,
private readonly AdyenLogger $adyenLogger
Expand All @@ -39,10 +37,9 @@ public function __construct(
}

/**
* @return ResultInterface|ResponseInterface
* @throws FileSystemException
* @return ResultInterface
*/
public function execute(): ResultInterface|ResponseInterface
public function execute(): ResultInterface
{
$redirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
$redirect->setUrl($this->_redirect->getRefererUrl());
Expand Down

0 comments on commit cacef78

Please sign in to comment.