mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-17 01:26:45 +00:00
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:
committed by
Wouter van Oortmerssen
parent
4d98faa515
commit
31e34faa15
@@ -10,9 +10,9 @@ class EnumInNestedNS
|
||||
const C = 2;
|
||||
|
||||
private static $names = array(
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
EnumInNestedNS::A=>"A",
|
||||
EnumInNestedNS::B=>"B",
|
||||
EnumInNestedNS::C=>"C",
|
||||
);
|
||||
|
||||
public static function Name($e)
|
||||
|
||||
Reference in New Issue
Block a user