Skip to content

Commit 82d093b

Browse files
Merge pull request #4 from whatwedo/fix/use-static-instead-of-class
fix(metric.state) put child-class in AbstractMetric
2 parents 72ee5a9 + ab2122a commit 82d093b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Monitoring/Metric/AbstractMetric.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class AbstractMetric implements AttributeInterface
1616
public function getState(): MetricStateEnum
1717
{
1818
if ($this->state === null) {
19-
throw new \RuntimeException(__CLASS__.'::$state is not set.');
19+
throw new \RuntimeException(static::class.'::$state is not set.');
2020
}
2121

2222
return $this->state;

0 commit comments

Comments
 (0)