Codeception / module-datafactory

DataFactory module for Codeception
MIT License
9 stars 7 forks source link

Basic PHPStan Configuration #18

Closed yesdevnull closed 2 years ago

yesdevnull commented 2 years ago

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.