Skip to content

Commit 7912087

Browse files
committed
Bump min php Version to 7.4, fix PHPstan issues
Signed-off-by: Lukas Kämmerling <[email protected]>
1 parent 4f71eb1 commit 7912087

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lkaemmerling/prometheus_client_php": "*"
1616
},
1717
"require": {
18-
"php": "^7.2|^8.0",
18+
"php": "^7.4|^8.0",
1919
"ext-json": "*"
2020
},
2121
"require-dev": {

src/Prometheus/Exception/MetricJsonException.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
*/
1010
class MetricJsonException extends Exception
1111
{
12+
private ?string $metricName;
1213

13-
private $metricName;
14-
public function __construct($message = "", $code = 0, Exception $previous = null, ?string $metricName = null)
15-
{
14+
public function __construct(
15+
string $message = "",
16+
int $code = 0,
17+
?Exception $previous = null,
18+
?string $metricName = null
19+
) {
1620
parent::__construct($message, $code, $previous);
1721
$this->metricName = $metricName;
1822
}

0 commit comments

Comments
 (0)