sameday-courier / magento-2-plugin

Magento 2 plugin for Sameday Courier shipping
4 stars 8 forks source link

PHP 8.2 Magento 2.4.6 #54

Open ethmelly opened 8 months ago

ethmelly commented 8 months ago

main.ERROR: Deprecated Functionality: Creation of dynamic property SamedayCourier\Shipping\Controller\Frontend\Lockers\Interceptor::$json is deprecated

Trebuie declarata proprietatea

class Lockers extends Action
{
    /** @var LockerRepositoryInterface $lockerRepository */
    private $lockerRepository;

    private $config;

    /** @var ResultFactory $resultFactory */
    protected $resultFactory;

    protected $json;  <------

    public function __construct(
        Context $context,
        LockerRepositoryInterface $lockerRepository,
        ScopeConfigInterface $config,
        ResultFactory $resultFactory,
        Json $json
    )