From 2af2dc8c368ade3f0f2f7e1758a91c1e14f347a1 Mon Sep 17 00:00:00 2001 From: Walther Lalk Date: Tue, 14 Jun 2016 12:23:34 +0200 Subject: [PATCH] Add in some brackets --- src/Validation/ValidatorAwareTrait.php | 2 +- tests/TestCase/ORM/TableTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validation/ValidatorAwareTrait.php b/src/Validation/ValidatorAwareTrait.php index 885381361f5..a1a483ef55e 100644 --- a/src/Validation/ValidatorAwareTrait.php +++ b/src/Validation/ValidatorAwareTrait.php @@ -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)); } } diff --git a/tests/TestCase/ORM/TableTest.php b/tests/TestCase/ORM/TableTest.php index 2038b3fd798..202cfe1823f 100644 --- a/tests/TestCase/ORM/TableTest.php +++ b/tests/TestCase/ORM/TableTest.php @@ -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() {