fix travis build

#23 and #24 both see build failures unrelated to their changes. lets see if this fixes it.
https://github.com/symfony/symfony/commit/b7770bcfd0ca9341aeada2bc003d505fa95236f8 added this method to the core, but without making the locale required. this is now an exact copy of the parent method.