I am facing an error while running command di:compile
This is my block file
<?php
namespace Company\Module\Block;
class Booking extends \Magento\Framework\View\Element\Template
{
/**
* Construct
*
* @param \Magento\Framework\View\Element\Template\Context $context
* @param array $data
*/
public function __construct(
\Magento\Framework\View\Element\Template $context,
array $data = []
)
{
parent::__construct($context, $data);
}
/**
* Get form action URL for POST booking request
*
* @return string
*/
public function getFormAction()
{
return '/companymodule/index/booking';
}
}
below is the error i am getting. can someone help me to figure things out
Company\Module\Block\Booking
Incompatible argument type: Required type: \Magento\Framework\View\Element\Template\Context. Actual type: \Magento\Framework\View\Element\Template; File: