If Boris Johnson's working majority drops way below zero all opposition MPs working together should be able to pass laws even if he's still in charge.
(The above would only be for the duration of the Brexit emergency. I am not proposing this as a long-term replacement for our traditional system of governance!)