Skip to content

Commit c5b58b3

Browse files
authored
Make compatible with PHP 8.2 (#4)
* Make compatible with PHP 8.2 * Enable GitHub actions for Pull Requests
1 parent 13a4dfd commit c5b58b3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [ main ]
6+
pull_request:
67

78
concurrency:
89
group: ${{ github.workflow }}-${{ github.ref }}

src/TicketSwapErrorFormatter.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace TicketSwap\PHPstanErrorFormatter;
66

7-
use Override;
87
use PHPStan\Command\AnalysisResult;
98
use PHPStan\Command\ErrorFormatter\CiDetectedErrorFormatter;
109
use PHPStan\Command\ErrorFormatter\ErrorFormatter;
@@ -13,12 +12,12 @@
1312

1413
final readonly class TicketSwapErrorFormatter implements ErrorFormatter
1514
{
16-
private const string FORMAT = "{message}\n{links}";
17-
private const string LINK_FORMAT_DEFAULT = "↳ <href={editorUrl}>{shortPath}:{line}</>\n";
18-
private const string LINK_FORMAT_GITHUB_ACTIONS = "↳ {relativePath}:{line}\n";
19-
private const string LINK_FORMAT_WARP = "↳ {relativePath}:{line}\n";
20-
private const string LINK_FORMAT_PHPSTORM = "↳ file://{absolutePath}:{line}\n";
21-
private const string LINK_FORMAT_WITHOUT_EDITOR = "↳ {relativePath}:{line}\n";
15+
private const FORMAT = "{message}\n{links}";
16+
private const LINK_FORMAT_DEFAULT = "↳ <href={editorUrl}>{shortPath}:{line}</>\n";
17+
private const LINK_FORMAT_GITHUB_ACTIONS = "↳ {relativePath}:{line}\n";
18+
private const LINK_FORMAT_WARP = "↳ {relativePath}:{line}\n";
19+
private const LINK_FORMAT_PHPSTORM = "↳ file://{absolutePath}:{line}\n";
20+
private const LINK_FORMAT_WITHOUT_EDITOR = "↳ {relativePath}:{line}\n";
2221

2322
private string $linkFormat;
2423

@@ -40,7 +39,6 @@ public static function getLinkFormatFromEnv() : string
4039
};
4140
}
4241

43-
#[Override]
4442
public function formatErrors(AnalysisResult $analysisResult, Output $output) : int
4543
{
4644
if (! $analysisResult->hasErrors()) {

0 commit comments

Comments
 (0)