The ordinance Lei and Gilson took issue with prohibits anyone in Philadelphia from manufacturing or buying devices like switches or bump stocks, which are designed to accelerate how fast a semiautomatic firearm can shoot.

Pennsylvania state law does not prohibit rate-of-acceleration devices and forbids counties and municipalities from passing laws restricting gun ownership.

After reviewing the rate of fire of the weapons used in a July 7 shooting that killed three people in Grays Ferry as well as a Memorial Day shooting in Lemon Hill that killed two, Philadelphia police believe switches were used in both shootings.

Lei and Gilson originally filed their complaint against the city in federal court but withdrew to later file in city court.

Their lawyers filed an appeal of the ruling Thursday, which can still be overturned in state court.

While not final, the rule marks a significant victory in Parker’s ongoing battle against gun violence in the city. She praised the ruling in a statement issued Thursday.

“Philadelphia deserves safe streets and safe summers, free from the threat of gun violence,” Parker wrote. “Switch devices have caused mass destruction in our communities and we will continue the fight to get them off of our streets.”

In 2024, the number of overall shootings in the city was down, with 36% fewer incidents compared to 2023. The city reported in early July that the number of homicides is down 9.7% from the same time last year. Yet Philly saw 2025’s most violent day on July 7, when 23 people were shot.