laravel/laravel — pull request #562 by ProgerXP (2012-04-19 19:47:27+00:00)
Title: Lang::__construct(): turn non-array $replacements into an array.

In my language files I often use strings with 1-2 replacements which I don't assign names: `Written on :0`, `Error :0 - try again`, etc. Currently I have to write `__('key', array('22/03/2012'))`; with this fix it'd be possible to avoid `array()` and also possible to pass objects which will be automatically turned into the replacement array.

Signed-off-by: Pavel