Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 28, 2025
1 parent a58e175 commit bbb8cfa
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
10 changes: 5 additions & 5 deletions src/Event/Emitter/DispatchingEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public function testBeforeTestMethodErrored(string $testClassName, ClassMethod $
}

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
Expand Down Expand Up @@ -477,7 +477,7 @@ public function testPreConditionErrored(string $testClassName, ClassMethod $call
}

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
Expand Down Expand Up @@ -1065,7 +1065,7 @@ public function testPostConditionErrored(string $testClassName, ClassMethod $cal
}

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
Expand Down Expand Up @@ -1117,7 +1117,7 @@ public function testAfterTestMethodErrored(string $testClassName, ClassMethod $c
}

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
Expand Down Expand Up @@ -1169,7 +1169,7 @@ public function testAfterLastTestMethodErrored(string $testClassName, ClassMetho
}

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
Expand Down
10 changes: 5 additions & 5 deletions src/Event/Emitter/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function testBeforeTestMethodCalled(string $testClassName, ClassMethod $c
public function testBeforeTestMethodErrored(string $testClassName, ClassMethod $calledMethod, Throwable $throwable): void;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function testBeforeTestMethodFinished(string $testClassName, ClassMethod ...$calledMethods): void;

Expand All @@ -106,7 +106,7 @@ public function testPreConditionCalled(string $testClassName, ClassMethod $calle
public function testPreConditionErrored(string $testClassName, ClassMethod $calledMethod, Throwable $throwable): void;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function testPreConditionFinished(string $testClassName, ClassMethod ...$calledMethods): void;

Expand Down Expand Up @@ -267,7 +267,7 @@ public function testPostConditionCalled(string $testClassName, ClassMethod $call
public function testPostConditionErrored(string $testClassName, ClassMethod $calledMethod, Throwable $throwable): void;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function testPostConditionFinished(string $testClassName, ClassMethod ...$calledMethods): void;

Expand All @@ -282,7 +282,7 @@ public function testAfterTestMethodCalled(string $testClassName, ClassMethod $ca
public function testAfterTestMethodErrored(string $testClassName, ClassMethod $calledMethod, Throwable $throwable): void;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function testAfterTestMethodFinished(string $testClassName, ClassMethod ...$calledMethods): void;

Expand All @@ -297,7 +297,7 @@ public function testAfterLastTestMethodCalled(string $testClassName, ClassMethod
public function testAfterLastTestMethodErrored(string $testClassName, ClassMethod $calledMethod, Throwable $throwable): void;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function testAfterLastTestMethodFinished(string $testClassName, ClassMethod ...$calledMethods): void;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PHPUnit\Event\Telemetry;

/**
* @psalm-immutable
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
Expand All @@ -26,14 +26,14 @@ final class AfterLastTestMethodErrored implements Event
private readonly Telemetry\Info $telemetryInfo;

/**
* @psalm-var class-string
* @var class-string
*/
private readonly string $testClassName;
private readonly Code\ClassMethod $calledMethod;
private readonly Throwable $throwable;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod, Throwable $throwable)
{
Expand All @@ -49,7 +49,7 @@ public function telemetryInfo(): Telemetry\Info
}

/**
* @psalm-return class-string
* @return class-string
*/
public function testClassName(): string
{
Expand Down
8 changes: 4 additions & 4 deletions src/Event/Events/Test/HookMethod/AfterTestMethodErrored.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PHPUnit\Event\Telemetry;

/**
* @psalm-immutable
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
Expand All @@ -26,14 +26,14 @@ final class AfterTestMethodErrored implements Event
private readonly Telemetry\Info $telemetryInfo;

/**
* @psalm-var class-string
* @var class-string
*/
private readonly string $testClassName;
private readonly Code\ClassMethod $calledMethod;
private readonly Throwable $throwable;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod, Throwable $throwable)
{
Expand All @@ -49,7 +49,7 @@ public function telemetryInfo(): Telemetry\Info
}

/**
* @psalm-return class-string
* @return class-string
*/
public function testClassName(): string
{
Expand Down
8 changes: 4 additions & 4 deletions src/Event/Events/Test/HookMethod/BeforeTestMethodErrored.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PHPUnit\Event\Telemetry;

/**
* @psalm-immutable
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
Expand All @@ -26,14 +26,14 @@ final class BeforeTestMethodErrored implements Event
private readonly Telemetry\Info $telemetryInfo;

/**
* @psalm-var class-string
* @var class-string
*/
private readonly string $testClassName;
private readonly Code\ClassMethod $calledMethod;
private readonly Throwable $throwable;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod, Throwable $throwable)
{
Expand All @@ -49,7 +49,7 @@ public function telemetryInfo(): Telemetry\Info
}

/**
* @psalm-return class-string
* @return class-string
*/
public function testClassName(): string
{
Expand Down
8 changes: 4 additions & 4 deletions src/Event/Events/Test/HookMethod/PostConditionErrored.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PHPUnit\Event\Telemetry;

/**
* @psalm-immutable
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
Expand All @@ -26,14 +26,14 @@ final class PostConditionErrored implements Event
private readonly Telemetry\Info $telemetryInfo;

/**
* @psalm-var class-string
* @var class-string
*/
private readonly string $testClassName;
private readonly Code\ClassMethod $calledMethod;
private readonly Throwable $throwable;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod, Throwable $throwable)
{
Expand All @@ -49,7 +49,7 @@ public function telemetryInfo(): Telemetry\Info
}

/**
* @psalm-return class-string
* @return class-string
*/
public function testClassName(): string
{
Expand Down
8 changes: 4 additions & 4 deletions src/Event/Events/Test/HookMethod/PreConditionErrored.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PHPUnit\Event\Telemetry;

/**
* @psalm-immutable
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
Expand All @@ -26,14 +26,14 @@ final class PreConditionErrored implements Event
private readonly Telemetry\Info $telemetryInfo;

/**
* @psalm-var class-string
* @var class-string
*/
private readonly string $testClassName;
private readonly Code\ClassMethod $calledMethod;
private readonly Throwable $throwable;

/**
* @psalm-param class-string $testClassName
* @param class-string $testClassName
*/
public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod, Throwable $throwable)
{
Expand All @@ -49,7 +49,7 @@ public function telemetryInfo(): Telemetry\Info
}

/**
* @psalm-return class-string
* @return class-string
*/
public function testClassName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions src/TextUI/Configuration/SourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class SourceFilter
private static ?self $instance = null;

/**
* @psalm-var array<non-empty-string, true>
* @var array<non-empty-string, true>
*/
private readonly array $map;

Expand All @@ -37,7 +37,7 @@ public static function instance(): self
}

/**
* @psalm-param array<non-empty-string, true> $map
* @param array<non-empty-string, true> $map
*/
public function __construct(array $map)
{
Expand Down

0 comments on commit bbb8cfa

Please sign in to comment.