A law creating an independent republic—in the event that the referendum took place and there was a majority "yes" vote, without requiring a minimum turnout—was approved by the Catalan parliament in a session on 6 September 2017. Opposition parties protested against the bill, calling it "a blow to democracy and a violation of the rights of the opposition", and staged a walkout before the vote was taken. On 7 September, the Catalan parliament passed a "transition law", to provide a legal framework pending the adoption of a new constitution, after similar protests and another walkout by opposition parties. The same day, 7 September, the Spanish Constitutional Court suspended the 6 September law while it considered an appeal from Mariano Rajoy, seeking a declaration that it was in breach of the Spanish constitution, meaning that the referendum could not legally go ahead on 1 October. The law was finally declared void on 17 October and is also illegal according to the Catalan Statutes of Autonomy which require a two-thirds majority in the Catalan parliament for any change to Catalonia's status.