Skip to content

Commit

Permalink
Add in some brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota committed Jun 14, 2016
1 parent 26cbd91 commit 2af2dc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Validation/ValidatorAwareTrait.php
Expand Up @@ -111,7 +111,7 @@ public function validator($name = null, Validator $validator = null)
}

if (!$validator instanceof Validator) {
throw new RuntimeException(sprintf('The %s::%s validation method must return an instance of %s.', self::class, 'validation' . ucfirst($name), Validator::class));
throw new RuntimeException(sprintf('The %s::%s() validation method must return an instance of %s.', self::class, 'validation' . ucfirst($name), Validator::class));
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/TableTest.php
Expand Up @@ -3242,7 +3242,7 @@ public function testValidationWithDefiner()
*
* @return void
* @expectedException \RuntimeException
* @expectedExceptionMessage The Cake\ORM\Table::validationBad validation method must return an instance of Cake\Validation\Validator.
* @expectedExceptionMessage The Cake\ORM\Table::validationBad() validation method must return an instance of Cake\Validation\Validator.
*/
public function testValidationWithBadDefiner()
{
Expand Down

0 comments on commit 2af2dc8

Please sign in to comment.