Skip to content

Commit 389f58c

Browse files
authored
Merge pull request #1 from staabm/php81
PHP 8.1 compatibility
2 parents 9e07fc7 + 0622688 commit 389f58c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=8.3",
12+
"php": ">=8.1",
1313
"phpstan/phpstan": "^2.0.1"
1414
},
1515
"require-dev": {

src/CheckstyleErrorFormatterPhpStorm.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@
1414
use function htmlspecialchars;
1515
use function sprintf;
1616

17-
/** @api */
18-
final readonly class CheckstyleErrorFormatterPhpStorm implements ErrorFormatter
17+
/**
18+
* @api
19+
* @readonly
20+
*/
21+
final class CheckstyleErrorFormatterPhpStorm implements ErrorFormatter
1922
{
20-
public function __construct(private RelativePathHelper $relativePathHelper) {}
23+
private RelativePathHelper $relativePathHelper;
24+
public function __construct(
25+
RelativePathHelper $relativePathHelper
26+
) {
27+
$this->relativePathHelper = $relativePathHelper;
28+
}
2129

2230
public function formatErrors(
2331
AnalysisResult $analysisResult,

0 commit comments

Comments
 (0)