Changing array to be an associative array so that the Name function can work with non-sequential enums as well as those beginning at something other than zero. (#5151)

Also including the resulting changes in php files.
This commit is contained in:
Travis Staley
2019-02-04 17:33:57 -05:00
committed by Wouter van Oortmerssen
parent 4d98faa515
commit 31e34faa15
7 changed files with 26 additions and 26 deletions

View File

@@ -11,10 +11,10 @@ class AnyAmbiguousAliases
const M3 = 3;
private static $names = array(
"NONE",
"M1",
"M2",
"M3",
AnyAmbiguousAliases::NONE=>"NONE",
AnyAmbiguousAliases::M1=>"M1",
AnyAmbiguousAliases::M2=>"M2",
AnyAmbiguousAliases::M3=>"M3",
);
public static function Name($e)