Just an advice, it is good for people who are learning and practicing PHP to pay attention to quality, standards and relevant tools, but should take Xoops Engine code as sandbox, not the legacy XOOPS 2 code.
Moderately I would suggest not add 2.5 only standards and APIs to your modules. But if you ensure that you can update your modules in time for future XOOPS releases, that's fine.