Skip to content

Commit

Permalink
Merge pull request #4 from whatwedo/fix/use-static-instead-of-class
Browse files Browse the repository at this point in the history
fix(metric.state) put child-class in AbstractMetric
  • Loading branch information
robinlehrmann authored Jul 10, 2024
2 parents 72ee5a9 + ab2122a commit 82d093b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monitoring/Metric/AbstractMetric.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract class AbstractMetric implements AttributeInterface
public function getState(): MetricStateEnum
{
if ($this->state === null) {
throw new \RuntimeException(__CLASS__.'::$state is not set.');
throw new \RuntimeException(static::class.'::$state is not set.');
}

return $this->state;
Expand Down

0 comments on commit 82d093b

Please sign in to comment.