Skip to content

Commit 1674596

Browse files
committed
ACPT-1688: Fix Metric Types
1 parent ee0548e commit 1674596

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/ApplicationPerformanceMonitor/Profiler/Metric.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
class Metric
1515
{
1616
/**
17-
* @param MetricType $type
17+
* @param string $type
1818
* @param string $name
1919
* @param mixed $value
2020
* @param bool $verbose
2121
*/
2222
public function __construct(
23-
private readonly MetricType $type,
23+
private readonly string $type,
2424
private readonly string $name,
2525
private readonly mixed $value,
2626
private readonly bool $verbose,
@@ -30,9 +30,9 @@ public function __construct(
3030
/**
3131
* Gets type of metric
3232
*
33-
* @return int|MetricType
33+
* @return int|string
3434
*/
35-
public function getType(): MetricType|int
35+
public function getType(): string|int
3636
{
3737
return $this->type;
3838
}

app/code/Magento/ApplicationPerformanceMonitor/Profiler/MetricType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Magento\ApplicationPerformanceMonitor\Profiler;
99

1010
/**
11-
* Enum for which type of metric
11+
* Type of metrics
1212
*/
1313
class MetricType
1414
{

0 commit comments

Comments
 (0)