@@ -50,7 +50,7 @@ |
||
50 | 50 | * @return $this |
51 | 51 | * @throws \Exception |
52 | 52 | */ |
53 | - public function interval(DateTimeInterface|int|string $start, DateTimeInterface|int|string $stop = null): self |
|
53 | + public function interval(DateTimeInterface | int | string $start, DateTimeInterface | int | string $stop = null): self |
|
54 | 54 | { |
55 | 55 | $this->intervals[] = new Interval($start, $stop); |
56 | 56 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string $outputName When not given, we will use the same name as the metric. |
15 | 15 | * @param string|DataType $type The type of field. This can either be "long", "float", "double" or "string" |
16 | 16 | */ |
17 | - public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG) |
|
17 | + public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG) |
|
18 | 18 | { |
19 | 19 | $this->type = is_string($type) ? DataType::from(strtolower($type)) : $type; |
20 | 20 | $this->metricName = $metricName; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * @param string|DataType $type The type of field. This can either be "long", "float" or |
23 | 23 | * "double" |
24 | 24 | */ |
25 | - public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG) |
|
25 | + public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG) |
|
26 | 26 | { |
27 | 27 | if (is_string($type)) { |
28 | 28 | $type = DataType::from(strtolower($type)); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function __construct( |
24 | 24 | string $metricName, |
25 | 25 | string $outputName = '', |
26 | - string|DataType $type = DataType::LONG, |
|
26 | + string | DataType $type = DataType::LONG, |
|
27 | 27 | int $maxStringBytes = null |
28 | 28 | ) { |
29 | 29 | if (is_string($type)) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param string|DataType $type The type of field. This can either be "long", "float", "double" or "string" |
16 | 16 | * |
17 | 17 | */ |
18 | - public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG) |
|
18 | + public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG) |
|
19 | 19 | { |
20 | 20 | $this->type = is_string($type) ? DataType::from(strtolower($type)) : $type; |
21 | 21 | $this->metricName = $metricName; |