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

Returning type string but getBoletoPDFLink() is declared to return \Magento\Framework\Phrase
Open

        return $this->_urlBuilder->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]).$path;
Severity: Minor
Found in Block/Sales/Info/Boleto.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;
Severity: Minor
Found in Gateway/Request/ItemsDataRequest.php by phan

Declaration of function generatePagBankInterest(int $cartId, \PagBank\PaymentMagento\Api\Data\CreditCardBinInterface $creditCardBin, \PagBank\PaymentMagento\Api\Data\InstallmentSelectedInterface $installmentSelected) : array should be compatible with function generatePagBankInterest(int $cartId, \PagBank\PaymentMagento\Api\Data\CreditCardBinInterface $creditCardBin, \PagBank\PaymentMagento\Api\Data\InstallmentSelectedInterface $installmentSelected) : \Magento\Quote\Api\Data\TotalsInterface defined in /code/Api/InterestManagementInterface.php:31
Open

    public function generatePagBankInterest(
Severity: Minor
Found in Model/Api/InterestManagement.php by phan

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

use Magento\Payment\Model\InfoInterface;

Saw unextractable annotation for comment '* @return $proceed'
Open

     * @return $proceed
Severity: Info
Found in Plugin/PaymentToken.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;

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
Severity: Minor
Found in Gateway/Response/TxnDataCcHandler.php by phan

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

            $data->setSessionId($session['session']);
Severity: Minor
Found in Model/Api/ThreeDsSession.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 $configPix in __construct contains phpdoc param type \PagBank\PaymentMagento\Gateway\Request\Config which is incompatible with the param type \PagBank\PaymentMagento\Gateway\Config\ConfigPix declared in the signature
Open

     * @param Config $configPix

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

use Magento\Payment\Model\InfoInterface;

Assigning ?\Magento\Payment\Gateway\Response\HandlerInterface to property but \PagBank\PaymentMagento\Gateway\Command\PaymentCommand->handler is \Magento\Payment\Gateway\Response\HandlerInterface
Open

        $this->handler = $handler;
Severity: Minor
Found in Gateway/Command/PaymentCommand.php by phan

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

use Magento\Framework\Phrase;
Severity: Minor
Found in Gateway/Config/ConfigDeepLink.php by phan

Returning type string but setExpiresAt() is declared to return \PagBank\PaymentMagento\Api\Data\ThreeDsSessionDataInterface|\PagBank\PaymentMagento\Model\Api\Data\Session|static
Open

        return $this->expiresAt = $expiresAt;
Severity: Minor
Found in Model/Api/Data/Session.php by phan

Returning type \Magento\Quote\Api\Data\TotalsInterface but generatePagBankInterest() is declared to return array
Open

        return $this->cardNumberInterface->generatePagBankInterest(
Severity: Minor
Found in Model/Api/GuestInterestManagement.php by phan

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

Call to method getState on non-class type null
Open

                __('Update not available because the initial state is incompatible: %1', $order->getState())
Severity: Critical
Found in Model/Console/Command/Orders/Update.php by phan
Severity
Category
Status
Source
Language