Skip to content

Commit

Permalink
fix: phpstan ignore lines
Browse files Browse the repository at this point in the history
  • Loading branch information
shakaran committed Jun 3, 2024
1 parent f9e70f0 commit 1331c1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/EventListener/LoginListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public function __toString(): string
];
} else {
yield 'If the user is an object implementing the Stringable interface, then the __toString() method is invoked' => [
// @phpstan-ignore-next-line
new AuthenticatedTokenStub(new class() implements \Stringable {

Check failure on line 289 in tests/EventListener/LoginListenerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

No error to ignore is reported on line 289.
public function __toString(): string
{
Expand Down Expand Up @@ -495,10 +496,12 @@ class LegacyAuthenticatedTokenStub extends AbstractToken
{
/**
* @var bool
* @phpstan-ignore-next-line
*/
private $authenticated = false;

/**
* @phpstan-ignore-next-line
* @param UserInterface|\Stringable|string|null $user
*/
public function __construct($user)

Check failure on line 507 in tests/EventListener/LoginListenerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

No error to ignore is reported on line 507.
Expand Down Expand Up @@ -526,10 +529,12 @@ final class AuthenticatedTokenStub extends AbstractToken
{
/**
* @var bool
* @phpstan-ignore-next-line
*/
private $authenticated = false;

Check failure on line 534 in tests/EventListener/LoginListenerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

No error to ignore is reported on line 534.

/**
* @phpstan-ignore-next-line
* @param UserInterface|\Stringable|string|null $user
*/
public function __construct($user)

Check failure on line 540 in tests/EventListener/LoginListenerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

No error to ignore is reported on line 540.
Expand Down

0 comments on commit 1331c1a

Please sign in to comment.