Speaking in an interview with Sky News Boris Johnson also reiterated his desire to achieve a deal.
Asked if he was now in a position where he had to rule out an extension to Brexit, the PM said: “On the contrary, as the law currently stands, the UK leaves the EU on October 31 come what may, but the interesting thing – the exciting thing – for us now is to get a deal, and that’s what we’re working on.
“I’ll be honest with you, it’s not made much easier by this kind of stuff in Parliament or in the courts.”
When it was suggested to the PM that, as the law stands, the UK cannot leave without a deal on 31 October without a deal, Mr Johnson added: “As the law stands we leave on October 31 and I’m very hopeful that we will get a deal.
“I think what the people of the country want is to see parliamentarians coming together, working in the national interest to get this thing done.”