The film will star Ezra Miller, reprising his role as Barry Allen/The Flash from Justice League. The Flash solo film has previously had two other directors attached. Dope filmmaker Rick Famuyiwa left in October 2016 over "creative differences.” His exit followed that of Seth Grahame-Smith, who had written the script and was attached to helm.

Daley and Goldstein were largely known for penning comedies such as Horrible Bosses and writing and directing 2015's Vacation before last year's Spider-Man, which earned more than $880 million worldwide. They also directed Jason Bateman and Rachel McAdams' Game Night, a film that blends the thriller/comedy genres and is set to open Feb. 23.

No date has been set for Flash, but Warners' next DC movie to hit theaters is Jason Momoa's Aquaman in December, followed by Shazam! in April 2019. The studio recently tapped exec Walter Hamada to spearhead its DC films.

Daley and Goldstein are repped by UTA and Fourth Wall Management.

Jan. 16, 10:06 p.m. An earlier version of this story incorrectly stated Goldstein and Daley wrote Game Night, which was actually written by Mark Perez. THR regrets the error.