laravel/laravel — pull request #804 by franzliedke (2012-06-12 11:33:47+00:00)
Title: Fix for #638: Handle empty arrays in where_in() gracefully

This allows for empty arrays being passed to Fluent's where_in() not causing an invalid query (#638).

Some people said that it's not the framework's responsibility to do this kind of error-checking, but I'd argue that this allows people to avoid adding boilerplate around queries all the time (also, you lose the benefits of the fluent query interface if you have to do error checking to modify the query).