@@ -812,14 +812,19 @@ private static function init(): void
812812 "VipsOperation " => self ::$ vips ->type ("VipsOperation* " ),
813813 "VipsImage " => self ::$ vips ->type ("VipsImage* " ),
814814 "VipsInterpolate " => self ::$ vips ->type ("VipsInterpolate* " ),
815- "VipsConnection " => self ::$ vips ->type ("VipsConnection* " ),
816- "VipsSource " => self ::$ vips ->type ("VipsSource* " ),
817- "VipsSourceCustom " => self ::$ vips ->type ("VipsSourceCustom* " ),
818- "VipsTarget " => self ::$ vips ->type ("VipsTarget* " ),
819- "VipsTargetCustom " => self ::$ vips ->type ("VipsTargetCustom* " ),
820815 "VipsProgress " => self ::$ vips ->type ("VipsProgress* " ),
821816 ];
822817
818+ if (self ::atLeast (8 , 9 )) {
819+ self ::$ ctypes = array_merge (self ::$ ctypes , [
820+ "VipsConnection " => self ::$ vips ->type ("VipsConnection* " ),
821+ "VipsSource " => self ::$ vips ->type ("VipsSource* " ),
822+ "VipsSourceCustom " => self ::$ vips ->type ("VipsSourceCustom* " ),
823+ "VipsTarget " => self ::$ vips ->type ("VipsTarget* " ),
824+ "VipsTargetCustom " => self ::$ vips ->type ("VipsTargetCustom* " ),
825+ ]);
826+ }
827+
823828 self ::$ gtypes = [
824829 "gboolean " => self ::$ gobject ->g_type_from_name ("gboolean " ),
825830 "gint " => self ::$ gobject ->g_type_from_name ("gint " ),
0 commit comments