Pennsylvania courts have ruled that such language prohibits cities from enacting gun laws that differ substantially from state law, striking down, for example, bans on assault weapons in Pittsburgh and Philadelphia.