From 54dd0eab72b34e2e18c583989d858236c5426c3b Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 9 Jul 2015 12:18:22 +0200 Subject: [PATCH] add note about #8897 to the docs --- framework/validators/CompareValidator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/validators/CompareValidator.php b/framework/validators/CompareValidator.php index 9a33c089a5..98e6d9cefe 100644 --- a/framework/validators/CompareValidator.php +++ b/framework/validators/CompareValidator.php @@ -62,6 +62,8 @@ class CompareValidator extends Validator * - `>=`: check if value being validated is greater than or equal to the value being compared with. * - `<`: check if value being validated is less than the value being compared with. * - `<=`: check if value being validated is less than or equal to the value being compared with. + * + * When you want to compare numbers, make sure to also set [[type]] to `number`. */ public $operator = '=='; /**