Browse Source

[php] add missing follow

Simon Krajewski 6 days ago
parent
commit
28ce014e32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/generators/genphp7.ml

+ 1 - 1
src/generators/genphp7.ml

@@ -281,7 +281,7 @@ let is_dynamic_type (target:Type.t) = match follow target with TDynamic _ -> tru
 (**
 (**
 	Check if `target` is `php.Ref`
 	Check if `target` is `php.Ref`
 *)
 *)
-let is_ref (target:Type.t) = match target with TType ({ t_path = type_path }, _) -> type_path = ref_type_path | _ -> false
+let is_ref (target:Type.t) = match follow_without_type target with TType ({ t_path = type_path }, _) -> type_path = ref_type_path | _ -> false
 
 
 (**
 (**
 	Check if `field` is a `dynamic function`
 	Check if `field` is a `dynamic function`