From c6125edc6625a423c1fd7729840a4dcdc3f02cd6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 29 Mar 2012 15:14:46 -0500 Subject: [PATCH] fix bug in input::except method when passing a string. --- changes.md | 1 + laravel/input.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)); } /**