add needed type hints for phpunit8This will break a lot of plugin tests, but can't be avoided
Issue #1250, associated unit test