Skip to content

Commit

Permalink
Merge pull request #5 from dp88/patch-1
Browse files Browse the repository at this point in the history
Replace Deprecated Helper for Laravel 6
  • Loading branch information
jszobody authored Sep 16, 2019
2 parents 2c26f4d + 8267b3e commit 83aa939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Traits/ProvidesMetric.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace STS\Metrics\Traits;

use Illuminate\Support\Str;
use STS\Metrics\Metric;

/**
Expand Down Expand Up @@ -31,7 +32,7 @@ public function getMetricName()
{
return property_exists($this, 'metricName')
? $this->metricName
: snake_case((new \ReflectionClass($this))->getShortName());
: Str::snake((new \ReflectionClass($this))->getShortName());
}

/**
Expand Down

0 comments on commit 83aa939

Please sign in to comment.