Skip to content

Commit

Permalink
Use static call in getName() in abstract rule classes (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored Dec 4, 2023
1 parent e052235 commit e18482f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rule/AbstractCompare.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function __construct(

public function getName(): string
{
return self::class;
return static::class;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/AbstractNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct(

public function getName(): string
{
return self::class;
return static::class;
}

/**
Expand Down

0 comments on commit e18482f

Please sign in to comment.