File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app/code/Magento/ApplicationPerformanceMonitor/Profiler Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414class 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 }
Original file line number Diff line number Diff line change 88namespace Magento \ApplicationPerformanceMonitor \Profiler ;
99
1010/**
11- * Enum for which type of metric
11+ * Type of metrics
1212 */
1313class MetricType
1414{
You can’t perform that action at this time.
0 commit comments