* Fix typo in Email module tests
Fix missing semicolon in tests for Email module causing PHPUnit to fail.
* Fix module test errors due to RedBean
Fix module tests causing error due to RedBean when being mocked in PHPUnit.
* Fix module test failures
Update module tests to fix failures, and remove obsoleted tests causing failure.
* Add PHPStan extension for deprecation function usage
* Removed some deprecated functions
* And a few more
* Also remove the deprecated API calls
* Fix references to deprecated API calls
* Oh, and this too