Skip to content

Commit 3646e47

Browse files
staabmsebastianbergmann
authored andcommitted
Fix PHPStan errors on properties
1 parent 82653fd commit 3646e47

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Framework/Constraint/Type/IsType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ final class IsType extends Constraint
128128
*/
129129
public function __construct(string $type)
130130
{
131-
/** @phpstan-ignore isset.offset */
132131
if (!isset(self::KNOWN_TYPES[$type])) {
133132
throw new UnknownTypeException($type);
134133
}

src/Logging/TeamCity/TeamCityLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class TeamCityLogger
4949
private readonly Printer $printer;
5050
private bool $isSummaryTestCountPrinted = false;
5151
private ?HRTime $time = null;
52-
private ?int $flowId;
52+
private ?int $flowId = null;
5353

5454
/**
5555
* @throws EventFacadeIsSealedException

src/TextUI/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Help
3232
private const LEFT_MARGIN = ' ';
3333
private int $lengthOfLongestOptionName = 0;
3434
private readonly int $columnsAvailableForDescription;
35-
private ?bool $hasColor;
35+
private bool $hasColor;
3636

3737
public function __construct(?int $width = null, ?bool $withColor = null)
3838
{

0 commit comments

Comments
 (0)