elisei/pagbank-payment-magento

View on GitHub

Showing 159 of 159 total issues

Doc-block of $cardTypeTransaction in generateListInstallments is phpdoc param type \PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface which is not a permitted replacement of the nullable param type ?\PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface $cardTypeTransaction

Declaration of function getRegion() : string should be compatible with function getRegion() : null|string[] defined in /code/Api/Data/AddressAdapterInterface.php:22
Open

    public function getRegion()
Severity: Minor
Found in Gateway/Data/Order/AddressAdapter.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace InfoInterface (\Magento\Payment\Model\InfoInterface)
Open

use Magento\Payment\Model\InfoInterface;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Assigning \Magento\Vault\Api\Data\PaymentTokenFactoryInterface to property but \PagBank\PaymentMagento\Gateway\Response\VaultDetailsHandler->paymentTokenFactory is \Magento\Vault\Api\Data\PaymentTokenInterfaceFactory
Open

        $this->paymentTokenFactory = $paymentTokenFactory;

Argument 1 (order) is \PagBank\PaymentMagento\Controller\Notification\OrderRepository but \PagBank\PaymentMagento\Controller\Notification\All::filterInvalidNotification() takes \Magento\Sales\Model\OrderRepository defined at /code/Controller/AbstractNotification.php:195
Open

        $isNotApplicable = $this->filterInvalidNotification($order);
Severity: Minor
Found in Controller/Notification/All.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Doc-block of getCreditCardType has declared return type string which is not a permitted replacement of the nullable return type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @return string

Possibly zero references to use statement for classlike/namespace LaminasClient (\Magento\Framework\HTTP\LaminasClient)
Open

use Magento\Framework\HTTP\LaminasClient;
Severity: Minor
Found in Model/Api/ThreeDsSession.php by phan

Returning type ?array{code:mixed,title:\Magento\Framework\Phrase,value:mixed} but fetch() is declared to return array
Open

        return $result;

Doc-block of $handler in __construct is phpdoc param type \Magento\Payment\Gateway\Response\HandlerInterface which is not a permitted replacement of the nullable param type ?\Magento\Payment\Gateway\Response\HandlerInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param HandlerInterface                 $handler
Severity: Minor
Found in Gateway/Command/PaymentCommand.php by phan

Doc-block of $validator in __construct is phpdoc param type \Magento\Payment\Gateway\Validator\ValidatorInterface which is not a permitted replacement of the nullable param type ?\Magento\Payment\Gateway\Validator\ValidatorInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param ValidatorInterface               $validator
Severity: Minor
Found in Gateway/Command/PaymentCommand.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Doc-block of $cardTypeTransaction in generateListInstallments is phpdoc param type \PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface which is not a permitted replacement of the nullable param type ?\PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \PagBank\PaymentMagento\Api\Data\CardTypeTransactionInterface $cardTypeTransaction

When fetching an array index from a value of type string, found an array index of type 'expires_at', but expected the index to be of type int
Open

            $data->setExpiresAt($session['expires_at']);
Severity: Minor
Found in Model/Api/ThreeDsSession.php by phan
Severity
Category
Status
Source
Language