fix(tests): deprecate warning in Symfony 5.4 for setAuthenticated #1183
Annotations
7 errors
PHPStan:
tests/EventListener/LoginListenerTest.php#L1
Ignored error pattern #^Parameter \#5 \$originatedFromUri of class Symfony\\Component\\Security\\Core\\Authentication\\Token\\SwitchUserToken constructor expects string\|null, Sentry\\SentryBundle\\Tests\\EventListener\\AuthenticatedTokenStub given\.$# in path /home/runner/work/sentry-symfony/sentry-symfony/tests/EventListener/LoginListenerTest.php was not matched in reported errors.
|
PHPStan:
tests/EventListener/LoginListenerTest.php#L224
Parameter #5 $originatedFromUri of class Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken constructor expects string|null, Sentry\SentryBundle\Tests\EventListener\LegacyAuthenticatedTokenStub given.
|
PHPStan:
tests/EventListener/LoginListenerTest.php#L508
Property Sentry\SentryBundle\Tests\EventListener\LegacyAuthenticatedTokenStub::$authenticated is never read, only written.
|
PHPStan:
tests/EventListener/LoginListenerTest.php#L518
Ignored error pattern #^Parameter \#1 \$user of method Symfony\\Component\\Security\\Core\\Authentication\\Token\\AbstractToken\:\:setUser\(\) expects Symfony\\Component\\Security\\Core\\User\\UserInterface, string\|Stringable\|Symfony\\Component\\Security\\Core\\User\\UserInterface given\.$# in path /home/runner/work/sentry-symfony/sentry-symfony/tests/EventListener/LoginListenerTest.php is expected to occur 1 time, but occurred 2 times.
|
PHPStan:
tests/EventListener/LoginListenerTest.php#L550
Parameter #1 $user of method Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setUser() expects Symfony\Component\Security\Core\User\UserInterface, string|Stringable|Symfony\Component\Security\Core\User\UserInterface given.
|
PHPStan
Process completed with exit code 1.
|
PHP-CS-Fixer
Process completed with exit code 8.
|