Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
changed getErrors() to errors()
Browse files Browse the repository at this point in the history
I'm simply taking a hint from the validator class. This is way more like the rest of laravel.

From validator:

/**
	 * An alternative more semantic shortcut to the message container.
 *
 * @return Illuminate\Support\MessageBag
 */
public function errors()
{
	return $this->messages;
}

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>
  • Loading branch information
Andreas Heiberg committed Feb 18, 2013
1 parent e47cad2 commit b025307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelBook/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected function performSave() {
*
* @return Illuminate\Support\MessageBag
*/
public function getErrors() {
public function errors() {
return $this->validationErrors;
}

Expand Down

0 comments on commit b025307

Please sign in to comment.