Review main Merged

15748[BUGFIX] Set class alias also for new class names

Helmut Hummel CR +2 V +2 Easy +5 −0 updated 06/03/13, 20:49

Commit message

As not all usage of class names trigger the autoloader,
usage of old class names in type hints for example doesn't.

If an object with a namespaced class name 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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1