@@ -35,6 +35,7 @@
php/python : fixed some bit operators for Int32 (#5938)
php : fixed accessing `static inline var` via reflection (#6630)
php : fixed Math.min() and Math.max() for NAN on PHP 7.1.9 and 7.1.10
+ php : don't fail on generating import aliases for classes with the similar names (#6680)
js : fixed js syntax error for `value.iterator--` (#6637)
Standard Library:
@@ -1308,7 +1308,10 @@ class code_writer (ctx:Common.context) hx_type_path php_name =
match !alias_source with
| [] -> failwith ("Failed to find already used type: " ^ get_full_type_name type_path)
| name :: rest ->
- alias_source := rest;
+ alias_source := (match rest with
+ | [] -> [name]
+ | _ -> rest
+ );
String.capitalize name
and added = ref false
and alias = ref (get_type_name type_path) in