Skip to content

Commit

Permalink
Fix phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Jan 2, 2025
1 parent 5f4172e commit 308b471
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Symfony/ClockTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use DateTimeImmutable;
use DateTimeInterface;
use PHPUnit\Framework\Attributes\Before;
use PHPUnit\Framework\ExpectationFailedException;
use Symfony\Component\Clock\Clock;
use Symfony\Component\Clock\Test\ClockSensitiveTrait;

Expand Down Expand Up @@ -62,13 +61,7 @@ protected static function assertNow(int|DateTimeInterface $actual, string $messa
}

/**
* Asserts that two timestamps
*
* @throws ExpectationFailedException
*
* @phpstan-template ExpectedType
* @phpstan-param ExpectedType $expected
* @phpstan-assert ExpectedType $actual
* Asserts that two timestamps (or timestamp of DateTime) are equal.
*/
protected static function assertSameTime(int|DateTimeInterface $expected, int|DateTimeInterface $actual, string $message = ''): void
{
Expand Down

0 comments on commit 308b471

Please sign in to comment.