diff --git a/app/src/Interfaces/Http/Controller/Auth/LoginAction.php b/app/src/Interfaces/Http/Controller/Auth/LoginAction.php index a065a58..f818ea5 100644 --- a/app/src/Interfaces/Http/Controller/Auth/LoginAction.php +++ b/app/src/Interfaces/Http/Controller/Auth/LoginAction.php @@ -13,7 +13,6 @@ use Spiral\Http\Exception\ClientException\UnauthorizedException; use Spiral\Http\ResponseWrapper; use Spiral\Router\Annotation\Route; -use Spiral\Session\SessionScope; final readonly class LoginAction { @@ -27,7 +26,6 @@ public function __invoke( AuthScope $authScope, TokenStorageInterface $tokens, SuccessRedirect $successRedirect, - SessionScope $session, ): ResponseInterface { if (!$auth->isAuthenticated()) { $url = $auth->getLoginUrl(); diff --git a/rector.php b/rector.php index 8422b30..612a7e0 100644 --- a/rector.php +++ b/rector.php @@ -38,6 +38,12 @@ RemoveUnusedVariableInCatchRector::class, ClosureToArrowFunctionRector::class, ]) + ->withSkip([ + \Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector::class => [ + __DIR__ . '/app/modules/Projects/Interfaces/Queries/FindProjectsHandler.php', + __DIR__ . '/app/modules/Webhooks/Interfaces/Query/FindWebhooksHandler.php', + ], + ]) ->withPhpVersion(PhpVersion::PHP_82) // here we can define, what prepared sets of rules will be applied ->withPreparedSets(