If you use the clone field type (fairly new acf type that clones another field) then you get an error:
Call to a member function get() on null
ACF stores clone fields as {fieldkey}_{clonedfieldkey} e.g field_58d217c0bbeef_field_58cb8919c2607
so we can extract the parent's field type instead and everything works as expected.
If you use the clone field type (fairly new acf type that clones another field) then you get an error: Call to a member function get() on null ACF stores clone fields as {fieldkey}_{clonedfieldkey} e.g
field_58d217c0bbeef_field_58cb8919c2607
so we can extract the parent's field type instead and everything works as expected.