Skip to content

Commit

Permalink
get_class -> static::class
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyoak committed Sep 21, 2015
1 parent 05e3c3c commit 3a5161c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DataType/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public static function getConstList()
}

/**
* @param $type
* @param $value
*/
private function guardAgainstValueNotInValidConstants($type)
private function guardAgainstValueNotInValidConstants($value)
{
if (!in_array($type, self::getConstList(), true)) {
if (!in_array($value, self::getConstList(), true)) {
throw new \InvalidArgumentException(
sprintf('Provided value for %s is not valid: %s', get_class($this), $type)
sprintf('Provided value for %s is not valid: %s', static::class, $value)
);
}
}
Expand Down

0 comments on commit 3a5161c

Please sign in to comment.