diff --git a/changes.md b/changes.md index 62c81cc0..902abaac 100644 --- a/changes.md +++ b/changes.md @@ -12,6 +12,7 @@ ## Laravel 3.2 +- Fixed the passing of strings into the Input::except method. - Fixed replacement of optional parameters in URL::transpose method. - Added "to_array" method to the base Eloquent model. - Added "$hidden" static variable to the base Eloquent model. diff --git a/laravel/input.php b/laravel/input.php index 8524957e..4f8afa45 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -96,7 +96,7 @@ class Input { */ public static function except($keys) { - return array_diff_key(static::get(), array_flip($keys)); + return array_diff_key(static::get(), array_flip((array) $keys)); } /**