I am extending \XF\Pub\Controller\Account and overriding emailSaveProcess function however I keep getting the error
Why is it requiring my overriding class to have an overriden FormAction? No code changes have been made to the function yet. I am not doing parent::emailSaveProcess because I have to modify a certain section of the function but this error is on a clean function. I am quite confused.
Code:
Argument 1 passed to Plugin\XF\Pub\Controller\Account::Plugin\XF\Pub\Controller\{closure}() must be an instance of Plugin\XF\Mvc\FormAction, instance of XF\Mvc\FormAction given
Why is it requiring my overriding class to have an overriden FormAction? No code changes have been made to the function yet. I am not doing parent::emailSaveProcess because I have to modify a certain section of the function but this error is on a clean function. I am quite confused.