From 78747147c3b74b806e544d232a513d787aed4949 Mon Sep 17 00:00:00 2001 From: Connor Date: Thu, 21 Mar 2024 09:52:15 +0100 Subject: [PATCH] [validator] fix return statement missing (#352) --- lib/validator/sfValidatorDecorator.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/validator/sfValidatorDecorator.class.php b/lib/validator/sfValidatorDecorator.class.php index 489029167..5cad7d280 100644 --- a/lib/validator/sfValidatorDecorator.class.php +++ b/lib/validator/sfValidatorDecorator.class.php @@ -63,6 +63,8 @@ public function getMessage($name) public function setMessage($name, $value) { $this->validator->setMessage($name, $value); + + return $this; } /** @@ -95,6 +97,8 @@ public function getOption($name) public function setOption($name, $value) { $this->validator->setOption($name, $value); + + return $this; } /** @@ -119,6 +123,8 @@ public function getOptions() public function setOptions($values) { $this->validator->setOptions($values); + + return $this; } /**