Fix Illegal string offset 'function' on morphToMany