Taking the configuration from module-doctrine2 and applying it to this codebase has been fairly trivial.
Only current roadblock is the ORM interface from the core Codeception codebase is an empty interface and should be an intersection type with the Codeception\Module class. Using PHP types/Doctypes we want (ORM&Module)|null but this might not be possible? Curiously a trivial example is valid in the PHPStan playground however this may be a config issue on my end. I'll continue to investigate this but if someone else knows what I'm doing wrong/what the issue is then please sing out.
Taking the configuration from
module-doctrine2
and applying it to this codebase has been fairly trivial.Only current roadblock is the
ORM
interface from the core Codeception codebase is an empty interface and should be an intersection type with theCodeception\Module
class. Using PHP types/Doctypes we want(ORM&Module)|null
but this might not be possible? Curiously a trivial example is valid in the PHPStan playground however this may be a config issue on my end. I'll continue to investigate this but if someone else knows what I'm doing wrong/what the issue is then please sing out.