Skip to content

Commit

Permalink
[SB-3744] No dynamic properties
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-playfinder committed Oct 5, 2023
1 parent e67f5f0 commit ca9cb07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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 string $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 string $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 string $classname;
public function __construct($classname)
{
$this->classname = $classname;
Expand Down

0 comments on commit ca9cb07

Please sign in to comment.