cast the error messages to an array.

This commit is contained in:
Taylor Otwell 2011-11-16 22:46:54 -06:00
parent 1c6f15a9fa
commit b5207ee2b8
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Messages {
*/ */
public function __construct($messages = array()) public function __construct($messages = array())
{ {
$this->messages = $messages; $this->messages = (array) $messages;
} }
/** /**