A probabilistic approach to phase calibration – I. Effects of source structure on fringe-fitting. Issue 1 (1st June 2020)