elisei/pagbank-payment-magento

View on GitHub

Showing 148 of 148 total issues

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;
Severity: Minor
Found in Gateway/Request/QrCodeDataRequest.php by phan

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

Assigning ?\Magento\Payment\Gateway\Validator\ValidatorInterface to property but \PagBank\PaymentMagento\Gateway\Command\PaymentCommand->validator is \Magento\Payment\Gateway\Validator\ValidatorInterface
Open

        $this->validator = $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 InfoInterface (\Magento\Payment\Model\InfoInterface)
Open

use Magento\Payment\Model\InfoInterface;

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

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

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 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;

Doc-block of $paymentTokenFactory in __construct is phpdoc param type \Magento\Vault\Api\Data\PaymentTokenFactoryInterface which is not a permitted replacement of the nullable param type ?\Magento\Vault\Api\Data\PaymentTokenFactoryInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param PaymentTokenFactoryInterface          $paymentTokenFactory

Possibly zero references to use statement for classlike/namespace Status (\Magento\Sales\Model\Order\Status)
Open

use Magento\Sales\Model\Order\Status;
Severity: Minor
Found in Model/Adminhtml/Source/OrderStatus.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;

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

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

use Magento\Payment\Gateway\Data\PaymentDataObject;

Assigning null to property but \PagBank\PaymentMagento\Gateway\Response\FetchPaymentHandler->finalStatus is string
Open

        $this->finalStatus = null;

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

use Magento\Payment\Model\InfoInterface;
Severity
Category
Status
Source
Language