#42058Set class alias also if new class names are required in class loader
Description
As not all usage of class names trigger the autoloader, usage of old class names in type hints for example.
If an object with a namespaced class is given to a method with an old class name, PHP dies with a fatal error.
To ensure full compatibility we need to set the class alias also when a namespaced class is required in the autoloader.