Skip to content

Avoid Username/Email is passed as clear GET Parameter to CheckEmailAction on password reset process #1897

Avoid Username/Email is passed as clear GET Parameter to CheckEmailAction on password reset process

Avoid Username/Email is passed as clear GET Parameter to CheckEmailAction on password reset process #1897

Re-run triggered August 26, 2024 12:30
Status Failure
Total duration 1m 7s
Artifacts

qa.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

15 errors
InvalidArgument: src/Action/CheckEmailAction.php#L63
src/Action/CheckEmailAction.php:63:32: InvalidArgument: Argument 1 of get_class expects object, but int provided (see https://psalm.dev/004)
RedundantCondition: src/Action/CheckEmailAction.php#L68
src/Action/CheckEmailAction.php:68:18: RedundantCondition: Type null for $tokenTtlDeprecated is never int (see https://psalm.dev/122)
NoValue: src/Action/CheckEmailAction.php#L76
src/Action/CheckEmailAction.php:76:13: NoValue: All possible types for this assignment were invalidated - This may be dead code (see https://psalm.dev/179)
TypeDoesNotContainType: src/Action/CheckEmailAction.php#L96
src/Action/CheckEmailAction.php:96:18: TypeDoesNotContainType: Type int for $tokenTtl is always !int (see https://psalm.dev/056)
TypeDoesNotContainType: src/Action/CheckEmailAction.php#L106
src/Action/CheckEmailAction.php:106:17: TypeDoesNotContainType: Type null for $tokenTtlDeprecated is always !null (see https://psalm.dev/056)
TooManyArguments: tests/Action/CheckEmailActionTest.php#L67
tests/Action/CheckEmailActionTest.php:67:19: TooManyArguments: Too many arguments for method Sonata\UserBundle\Action\CheckEmailAction::__invoke - saw 1 (see https://psalm.dev/026)
TooManyArguments: tests/Action/CheckEmailActionTest.php#L94
tests/Action/CheckEmailActionTest.php:94:19: TooManyArguments: Too many arguments for method Sonata\UserBundle\Action\CheckEmailAction::__invoke - saw 1 (see https://psalm.dev/026)
InvalidArgument: tests/Action/CheckEmailActionTest.php#L101
tests/Action/CheckEmailActionTest.php:101:56: InvalidArgument: Argument 2 of Sonata\UserBundle\Action\CheckEmailAction::__construct expects Sonata\AdminBundle\Admin\Pool, but PHPUnit\Framework\MockObject\MockObject&Symfony\Component\Routing\Generator\UrlGeneratorInterface provided (see https://psalm.dev/004)
InvalidArgument: tests/Action/CheckEmailActionTest.php#L101
tests/Action/CheckEmailActionTest.php:101:77: InvalidArgument: Argument 3 of Sonata\UserBundle\Action\CheckEmailAction::__construct expects Sonata\AdminBundle\Templating\TemplateRegistryInterface, but Sonata\AdminBundle\Admin\Pool provided (see https://psalm.dev/004)
InvalidArgument: tests/Action/CheckEmailActionTest.php#L101
tests/Action/CheckEmailActionTest.php:101:90: InvalidArgument: Argument 4 of Sonata\UserBundle\Action\CheckEmailAction::__construct expects int, but PHPUnit\Framework\MockObject\MockObject&Sonata\AdminBundle\Templating\TemplateRegistryInterface provided (see https://psalm.dev/004)
PHPStan: src/Action/CheckEmailAction.php#L63
Parameter #1 $object of function get_class expects object, int given.
PHPStan: tests/Action/CheckEmailActionTest.php#L67
Callable Sonata\UserBundle\Action\CheckEmailAction invoked with 1 parameter, 0 required.
PHPStan: tests/Action/CheckEmailActionTest.php#L94
Callable Sonata\UserBundle\Action\CheckEmailAction invoked with 1 parameter, 0 required.
PHPStan
Process completed with exit code 1.
Rector
Process completed with exit code 2.