diff --git a/src/Validators/EnumValidator.php b/src/Validators/EnumValidator.php index 7f88d36f..c8d5c0bf 100644 --- a/src/Validators/EnumValidator.php +++ b/src/Validators/EnumValidator.php @@ -6,6 +6,7 @@ class EnumValidator extends BaseValidator { + private $classname; public function __construct($classname) { $this->classname = $classname; @@ -17,7 +18,7 @@ public function __construct($classname) * It is therefore recommended to call the "run" method first before this. * * @param mixed $value The value to coerce. - * @return int The coerced value + * @return mixed The coerced value */ public function coerce($value) { diff --git a/src/Validators/InstanceValidator.php b/src/Validators/InstanceValidator.php index 9a170f11..5978afed 100644 --- a/src/Validators/InstanceValidator.php +++ b/src/Validators/InstanceValidator.php @@ -4,6 +4,7 @@ class InstanceValidator extends BaseValidator { + private $classname; public function __construct($classname) { $this->classname = $classname; diff --git a/src/Validators/RpdeEnumValidator.php b/src/Validators/RpdeEnumValidator.php index d189830a..7e730e59 100644 --- a/src/Validators/RpdeEnumValidator.php +++ b/src/Validators/RpdeEnumValidator.php @@ -4,6 +4,7 @@ class RpdeEnumValidator extends BaseValidator { + private $classname; public function __construct($classname) { $this->classname = $classname;