Skip to content

fix(tests): deprecate warning in Symfony 5.4 for setAuthenticated #1199

fix(tests): deprecate warning in Symfony 5.4 for setAuthenticated

fix(tests): deprecate warning in Symfony 5.4 for setAuthenticated #1199

Re-run triggered June 4, 2024 11:55
Status Failure
Total duration 49s
Artifacts

static-analysis.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
PHPStan: src/ErrorTypesParser.php#L1
Ignored error pattern #^Parameter \#2 \$callback of function preg_replace_callback expects callable\(array\<int\|string, string\>\)\: string, Closure\(array\)\: mixed given\.$# in path /home/runner/work/sentry-symfony/sentry-symfony/src/ErrorTypesParser.php was not matched in reported errors.
PHPStan: tests/EventListener/LoginListenerTest.php#L1
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 was not matched in reported 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
Process completed with exit code 1.