When I use Upgrade Rector to generate a patch for the Inmail module, I get the following error.
PHP Fatal error: During class fetch: Uncaught PHPStanBrokerClassAutoloadingException: Class PHPUnitRunnerVersion not found. in phar:///app/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Runtime/RuntimeReflectionProvider.php:143
#0 [internal function]: PHPStanReflectionRuntimeRuntimeReflectionProvider->PHPStanReflectionRuntime{closure}(‘PHPUnitRunner…’)
#1 /app/docroot/core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php(27): spl_autoload_call(‘PHPUnitRunner…’)
#2 /app/docroot/core/tests/Drupal/Tests/PhpunitCompatibilityTrait.php(11): DrupalTestToolsPhpUnitCompatibilityRunnerVersion::getMajor()
#3 /app/vendor/rector/rector/vendor/composer/ClassLoader.php(480): include(‘/app/docroot/co…’)
#4 /app/vendor/rector/rector/vendor/composer/ClassLoader.php(346): ComposerAutoloadincludeFile(‘/app/docroot/co…’)
#5 [internal function]: ComposerAutoloadClassLoader->loadClass(‘DrupalTestsPh…’)
#6 /app/docroot/core/tests/Drupal/KernelTests/KernelTestBa in /app/docroot/core/tests/Drupal/KernelTests/KernelTestBase.php on line 75