Skip to content

Commit fe93f2d

Browse files
committed
Move readonly to class properties
1 parent 67f9590 commit fe93f2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TicketSwapErrorFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPStan\Command\Output;
1111
use PHPStan\File\RelativePathHelper;
1212

13-
final readonly class TicketSwapErrorFormatter implements ErrorFormatter
13+
final class TicketSwapErrorFormatter implements ErrorFormatter
1414
{
1515
private const FORMAT = "{message}\n{links}";
1616
private const LINK_FORMAT_DEFAULT = "↳ <href={editorUrl}>{shortPath}:{line}</>\n";
@@ -22,9 +22,9 @@
2222
private string $linkFormat;
2323

2424
public function __construct(
25-
private RelativePathHelper $relativePathHelper,
26-
private CiDetectedErrorFormatter $ciDetectedErrorFormatter,
27-
private ?string $editorUrl,
25+
private readonly RelativePathHelper $relativePathHelper,
26+
private readonly CiDetectedErrorFormatter $ciDetectedErrorFormatter,
27+
private readonly ?string $editorUrl,
2828
) {
2929
$this->linkFormat = self::getLinkFormatFromEnv();
3030
}

0 commit comments

Comments
 (0)