PHILADELPHIA — A judge has ordered UberX and Lyft to stop operating their ride-hailing services in Philadelphia.

An Uber spokesman says the company is reviewing the decision and calls on state lawmakers to adopt a ride-hailing bill “as soon as possible.”

The order from Common Pleas Judge Linda Carpenter stems from a lawsuit filed by the president of the Taxi Workers Alliance of Philadelphia and others in July.

State lawmakers gave the ride-hailing services temporary authorization to operate in Philadelphia before the Democratic National Convention that month. But that legislation expired last week.

The order states the San Francisco-based companies could be held in contempt of court if they operate after Thursday.

Lyft says it’s also reviewing the decision. The more expensive Uber Black service is still available.

The Pennsylvania House reconvenes Oct. 17.