XFA
Well-known member
Hi guys,
In the XF 2.0 version of the RM, the category save process in admin had the following prototype:
In the XF 2.1 version of the RM, it unfortunately changed to:
So my add-on class extension obviously led to a warning: Declaration bla bla bla should be compatible with bla bla bla.
Do you guys have any idea of the best way to provide something compatible with both version of the RM without having to manage a XF 2.0 and a XF 2.1 version of my add-on ?
Thanks,
Clément
In the XF 2.0 version of the RM, the category save process in admin had the following prototype:
PHP:
protected function categorySaveProcess(\XF\Entity\AbstractCategoryTree $category)
In the XF 2.1 version of the RM, it unfortunately changed to:
PHP:
protected function categorySaveProcess(\XFRM\Entity\Category $category)
So my add-on class extension obviously led to a warning: Declaration bla bla bla should be compatible with bla bla bla.
Do you guys have any idea of the best way to provide something compatible with both version of the RM without having to manage a XF 2.0 and a XF 2.1 version of my add-on ?
Thanks,
Clément