Fixes composer reported issue 3421. Thank you @xabbuh .