Change record status: 
Project: 
Introduced in branch: 
8.6.x
Introduced in version: 
8.6.8
Description: 

ModuleHandler::getName() supports being called with the name of a module that doesn't exist, in this case it returns the machine name instead of the human readable name.

This behaviour has been deprecated, and from Drupal 9.0.0 it will start to throw Drupal\Core\Extension\Exception\UnknownExtensionException

Impacts: 
Module developers