Skip to content

Commit 7874714

Browse files
connorhumentalstring
authored andcommitted
[validator] fix return statement missing (FriendsOfSymfony1#352)
1 parent fe123f0 commit 7874714

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/validator/sfValidatorDecorator.class.php

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public function getMessage($name)
6363
public function setMessage($name, $value)
6464
{
6565
$this->validator->setMessage($name, $value);
66+
67+
return $this;
6668
}
6769

6870
/**
@@ -95,6 +97,8 @@ public function getOption($name)
9597
public function setOption($name, $value)
9698
{
9799
$this->validator->setOption($name, $value);
100+
101+
return $this;
98102
}
99103

100104
/**
@@ -119,6 +123,8 @@ public function getOptions()
119123
public function setOptions($values)
120124
{
121125
$this->validator->setOptions($values);
126+
127+
return $this;
122128
}
123129

124130
/**

0 commit comments

Comments
 (0)