I am declaring the method as follows.
public function beforeRender(EventInterface $event)
It is showing the following error
Declaration of App\Controller\AppController::beforeRender(App\Controller\EventInterface $event) should be compatible with Cake\Controller\Controller::beforeRender(Cake\Event\EventInterface $event)
Is there a problem when declaring the function? If so what?