In informal speech, "was" is used, but "were" is more formal. "Were" is the past subjunctive, and "was" is the simple past form of the verb "to be". The subjunctive is used for events that are not certain to happen, which fits with the verb in the sentence, "wish".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.