Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SB-3744] Avoid dynamic properties not allowed error #2

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Validators/EnumValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class EnumValidator extends BaseValidator
{
private $classname;
public function __construct($classname)
{
$this->classname = $classname;
Expand All @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions src/Validators/InstanceValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

class InstanceValidator extends BaseValidator
{
private $classname;
public function __construct($classname)
{
$this->classname = $classname;
Expand Down
1 change: 1 addition & 0 deletions src/Validators/RpdeEnumValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

class RpdeEnumValidator extends BaseValidator
{
private $classname;
public function __construct($classname)
{
$this->classname = $classname;
Expand Down