Skip to content

Update tools

Update tools #2286

Triggered via pull request December 3, 2023 12:21
Status Failure
Total duration 53s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
2s
run / Generate test matrix
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 10 warnings
run / Static Code Analysis (8.3): src/Action/RequestResetAction.php#L56
Property Nucleos\UserBundle\Action\RequestResetAction::$userProvider with generic interface Symfony\Component\Security\Core\User\UserProviderInterface does not specify its types: TUser
run / Static Code Analysis (8.3): src/Action/RequestResetAction.php#L63
Method Nucleos\UserBundle\Action\RequestResetAction::__construct() has parameter $userProvider with generic interface Symfony\Component\Security\Core\User\UserProviderInterface but does not specify its types: TUser
run / Static Code Analysis (8.3): src/Security/UserProvider.php#L24
Class Nucleos\UserBundle\Security\UserProvider implements generic interface Symfony\Component\Security\Core\User\UserProviderInterface but does not specify its types: TUser
run / Static Code Analysis (8.3): tests/Form/Type/ResettingFormTypeTest.php#L24
Dynamic call to static method PHPUnit\Framework\TestCase::createStub().
run / Static Code Analysis (8.3)
Process completed with exit code 2.
run / Test: PHP 8.1, Symfony 6.3, highest)
Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - symfony/cache is locked to version v7.0.0 and an update of this package was not requested. - symfony/cache v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 2 - symfony/config is locked to version v7.0.0 and an update of this package was not requested. - symfony/config v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 3 - symfony/dependency-injection is locked to version v7.0.1 and an update of this package was not requested. - symfony/dependency-injection v7.0.1 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 4 - symfony/error-handler is locked to version v7.0.0 and an update of this package was not requested. - symfony/error-handler v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 5 - symfony/event-dispatcher is locked to version v7.0.0 and an update of this package was not requested. - symfony/event-dispatcher v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 6 - symfony/filesystem is locked to version v7.0.0 and an update of this package was not requested. - symfony/filesystem v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 7 - symfony/finder is locked to version v7.0.0 and an update of this package was not requested. - symfony/finder v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 8 - symfony/framework-bundle is locked to version v7.0.1 and an update of this package was not requested. - symfony/framework-bundle v7.0.1 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 9 - symfony/http-foundation is locked to version v7.0.0 and an update of this package was not requested. - symfony/http-foundation v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 10 - symfony/http-kernel is locked to version v7.0.1 and an update of this package was not requested. - symfony/http-kernel v7.0.1 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 11 - symfony/options-resolver is locked to version v7.0.0 and an update of this package was not requested. - symfony/options-resolver v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 12 - symfony/process is locked to version v7.0.0 and an update of this package was not requested. - symfony/process v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 13 - symfony/routing is locked to version v7.0.1 and an update of this package was not requested. - symfony/routing v7.0.1 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 14 - symfony/stopwatch is locked to version v7.0.0 and an update of this package was not requested. - symfony/stopwatch v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 15 - symfony/string is locked to version v7.0.0 and an update of this package was not requested. - symfony/string v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 16 - symfony/var-dumper is locked to version v7.0.0 and an update of this package was not requested. - symfony/var-dumper v7.0.0 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 17 - symfony/var-exporter is locked to version v7.0.1 and an update of this package was not requested. - symfony/var-exporter v7.0.1 requires php >=8.2 -> your php version (8.1.26) does not satisfy that requirement. Problem 18 - symfony/yaml is locked to version v7.0.0 and an update
run / Test: PHP 8.1, Symfony 6.3, highest)
Process completed with exit code 2.
run / Test: PHP 8.3, Symfony 6.3, lowest)
The operation was canceled.
run / Test: PHP 8.2, Symfony 6.3, lowest)
The operation was canceled.
run / Test: PHP 8.1, Symfony 6.3, lowest)
The operation was canceled.
run / Test: PHP 8.2, Symfony 6.3, highest)
The job was canceled because "_8_1_6_3_highest" failed.
run / Test: PHP 8.2, Symfony 6.3, highest)
The operation was canceled.
run / Coding Standards (8.3)
Process completed with exit code 2.
run / Test: PHP 8.3, Symfony 6.3, highest)
The job was canceled because "_8_1_6_3_highest" failed.
run / Test: PHP 8.3, Symfony 6.3, highest)
The operation was canceled.
run / Mutation Tests (8.3): src/Action/LoginAction.php#L65
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function __invoke(Request $request) : Response { $event = new GetResponseLoginEvent($request); - $this->eventDispatcher->dispatch($event, NucleosUserEvents::SECURITY_LOGIN_INITIALIZE); + if (null !== $event->getResponse()) { return $event->getResponse(); }
run / Mutation Tests (8.3): src/Action/LoginAction.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (null !== $event->getResponse()) { return $event->getResponse(); } - $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); + $form = $this->formFactory->create(LoginFormType::class, null, ['method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); } }
run / Mutation Tests (8.3): src/Action/LoginAction.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (null !== $event->getResponse()) { return $event->getResponse(); } - $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); + $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, []); return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); } }
run / Mutation Tests (8.3): src/Action/LoginAction.php#L83
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ return $event->getResponse(); } $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); - return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); + return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' > $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); } }
run / Mutation Tests (8.3): src/Action/LoginAction.php#L84
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ return $event->getResponse(); } $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); - return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); + return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' > $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); } }
run / Mutation Tests (8.3): src/Action/LoginAction.php#L85
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ return $event->getResponse(); } $form = $this->formFactory->create(LoginFormType::class, null, ['action' => $this->router->generate('nucleos_user_security_check'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'security.login.submit']); - return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' => $this->csrfTokenManager->getToken('authenticate')])); + return new Response($this->twig->render('@NucleosUser/Security/login.html.twig', ['form' => $form->createView(), 'last_username' => $this->authenticationUtils->getLastUsername(), 'error' => $this->authenticationUtils->getLastAuthenticationError(), 'csrf_token' > $this->csrfTokenManager->getToken('authenticate')])); } }
run / Mutation Tests (8.3): src/Action/RequestResetAction.php#L90
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function __invoke(Request $request) : Response { $form = $this->createForm(); - $form->handleRequest($request); + if ($form->isSubmitted() && $form->isValid()) { $response = $this->process($request); $this->getFlashBag($request)?->add('success', $this->translator->trans('resetting.check_email', ['%tokenLifetime%' => ceil($this->retryTtl / 3600)], 'NucleosUserBundle'));
run / Mutation Tests (8.3): src/Action/RequestResetAction.php#L92
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ { $form = $this->createForm(); $form->handleRequest($request); - if ($form->isSubmitted() && $form->isValid()) { + if ($form->isSubmitted() && !$form->isValid()) { $response = $this->process($request); $this->getFlashBag($request)?->add('success', $this->translator->trans('resetting.check_email', ['%tokenLifetime%' => ceil($this->retryTtl / 3600)], 'NucleosUserBundle')); if (null !== $response) {
run / Mutation Tests (8.3): src/Action/RequestResetAction.php#L193
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } private function createForm() : FormInterface { - return $this->formFactory->create(RequestPasswordFormType::class, null, ['action' => $this->router->generate('nucleos_user_resetting_request'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'resetting.request.submit']); + return $this->formFactory->create(RequestPasswordFormType::class, null, ['method' => 'POST'])->add('save', SubmitType::class, ['label' => 'resetting.request.submit']); } }
run / Mutation Tests (8.3): src/Action/RequestResetAction.php#L197
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } private function createForm() : FormInterface { - return $this->formFactory->create(RequestPasswordFormType::class, null, ['action' => $this->router->generate('nucleos_user_resetting_request'), 'method' => 'POST'])->add('save', SubmitType::class, ['label' => 'resetting.request.submit']); + return $this->formFactory->create(RequestPasswordFormType::class, null, ['action' => $this->router->generate('nucleos_user_resetting_request'), 'method' => 'POST'])->add('save', SubmitType::class, []); } }