PayboxByVerifone / Magento-2.3.x

Magento 2.3.x Verifone e-commerce integration
Apache License 2.0
0 stars 3 forks source link

Error compile #11

Open gabi77 opened 2 years ago

gabi77 commented 2 years ago

When launching the magento 2 compiler. I have an error on the payment block

Version PHP 7.4

Deprecated Functionality: Cannot use "parent" when current class scope has   
no parent in .../vendor/paybox/epayment/Block/Checkout/  Payment.php on line 28  

Version Plugin 1.0.13

namespace Paybox\Epayment\Block\Checkout;

class Payment
{
    protected function _construct()
    {
        parent::_construct();
        $this->setTemplate('pbxep/checkout-payment.phtml');
    }

extends is not present for class Paybox\Epayment\Block\Checkout\Payment.php

Thanks.

Yonn-Trimoreau commented 2 years ago

Don't expect an answer... This repo appears to be dead (or nearly dead): https://github.com/PayboxByVerifone/Magento-2.3.x/issues/9

Yonn-Trimoreau commented 2 years ago

@jcpaybox ?

Yonn-Trimoreau commented 2 years ago
diff --git a/Block/Checkout/Payment.php b/Block/Checkout/Payment.php
index 4d9b2e0..8b9231f 100644
--- a/Block/Checkout/Payment.php
+++ b/Block/Checkout/Payment.php
@@ -21,7 +21,9 @@

 namespace Paybox\Epayment\Block\Checkout;

-class Payment
+use Magento\Framework\View\Element\Template;
+
+class Payment extends Template
 {
     protected function _construct()
     {