From 2def2496c5d5bef769cfda539c27530a62a6fc1c Mon Sep 17 00:00:00 2001
From: connor <connor@connor.hu>
Date: Thu, 21 Mar 2024 09:28:40 +0100
Subject: [PATCH] [validator] fix return statement missing stan error

---
 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;
     }
 
     /**