Skip to content

Remove psalm in favor of phpstan #1806

Remove psalm in favor of phpstan

Remove psalm in favor of phpstan #1806

Triggered via pull request February 7, 2025 18:40
Status Failure
Total duration 2h 44m 27s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
4s
run / Generate test matrix
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / tests
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 10 warnings
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Call to method findUserByEmail\(\) on an unknown class Nucleos\\UserBundle\\Model\\UserManager\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Call to method generate\(\) on an unknown class Symfony\\Component\\Routing\\RouterInterface\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Call to method getSession\(\) on an unknown class Symfony\\Component\\HttpFoundation\\Request\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Call to method render\(\) on an unknown class Twig\\Environment\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Instantiated class Symfony\\Component\\HttpFoundation\\RedirectResponse not found\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Instantiated class Symfony\\Component\\HttpFoundation\\Response not found\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Method Nucleos\\ProfileBundle\\Action\\CheckRegistrationMailAction\:\:__invoke\(\) has invalid return type Symfony\\Component\\HttpFoundation\\Response\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Method Nucleos\\ProfileBundle\\Action\\CheckRegistrationMailAction\:\:__invoke\(\) should return Symfony\\Component\\HttpFoundation\\Response but returns Symfony\\Component\\HttpFoundation\\RedirectResponse\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Parameter \$request of method Nucleos\\ProfileBundle\\Action\\CheckRegistrationMailAction\:\:__invoke\(\) has invalid type Symfony\\Component\\HttpFoundation\\Request\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Static Code Analysis (8.4): src/Action/CheckRegistrationMailAction.php#L1
Ignored error pattern #^Parameter \$router of method Nucleos\\ProfileBundle\\Action\\CheckRegistrationMailAction\:\:__construct\(\) has invalid type Symfony\\Component\\Routing\\RouterInterface\.$# in path /home/runner/work/NucleosProfileBundle/NucleosProfileBundle/src/Action/CheckRegistrationMailAction.php was not matched in reported errors.
run / Test: PHP 8.2, Symfony 7.0, highest)
Process completed with exit code 2.
run / Test: PHP 8.2, Symfony 7.0, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.3, Symfony 6.4, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.3, Symfony 6.4, highest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.2, Symfony 6.4, highest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.4, Symfony 6.4, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.4, Symfony 6.4, highest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.3, Symfony 7.0, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.3, Symfony 7.0, highest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.4, Symfony 7.0, highest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Test: PHP 8.4, Symfony 7.0, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
run / Mutation Tests (8.4): src/Action/ConfirmRegistrationAction.php#L59
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $user->setConfirmationToken(null); $user->setEnabled(true); $event = new GetResponseUserEvent($user, $request); - $this->eventDispatcher->dispatch($event, NucleosProfileEvents::REGISTRATION_CONFIRM); + $userManager->updateUser($user); if (null === $response = $event->getResponse()) { $url = $this->router->generate('nucleos_profile_registration_confirmed');
run / Mutation Tests (8.4): src/Action/ConfirmRegistrationAction.php#L61
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $user->setEnabled(true); $event = new GetResponseUserEvent($user, $request); $this->eventDispatcher->dispatch($event, NucleosProfileEvents::REGISTRATION_CONFIRM); - $userManager->updateUser($user); + if (null === $response = $event->getResponse()) { $url = $this->router->generate('nucleos_profile_registration_confirmed'); $response = new RedirectResponse($url);
run / Mutation Tests (8.4): src/Action/ConfirmRegistrationAction.php#L68
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $url = $this->router->generate('nucleos_profile_registration_confirmed'); $response = new RedirectResponse($url); } - $this->eventDispatcher->dispatch(new FilterUserResponseEvent($user, $request, $response), NucleosProfileEvents::REGISTRATION_CONFIRMED); + return $response; } }
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L67
Escaped Mutant for Mutator "InstanceOf_": @@ @@ public function __invoke(Request $request): Response { $user = $this->security->getUser(); - if (!$user instanceof UserInterface) { + if (!true) { throw new AccessDeniedException('This user does not have access to this section.'); } $event = new GetResponseUserEvent($user, $request);
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L72
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ throw new AccessDeniedException('This user does not have access to this section.'); } $event = new GetResponseUserEvent($user, $request); - $this->eventDispatcher->dispatch($event, NucleosProfileEvents::PROFILE_EDIT_INITIALIZE); + if (null !== $event->getResponse()) { return $event->getResponse(); }
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L93
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function updateUser(Request $request, FormInterface $form, UserInterface $user): Response { $event = new UserFormEvent($user, $form, $request); - $this->eventDispatcher->dispatch($event, NucleosProfileEvents::PROFILE_EDIT_SUCCESS); + $this->userManager->updateUser($user); if (null === $response = $event->getResponse()) { $response = new RedirectResponse($this->router->generate('nucleos_profile_profile_show'));
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L101
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if (null === $response = $event->getResponse()) { $response = new RedirectResponse($this->router->generate('nucleos_profile_profile_show')); } - $this->eventDispatcher->dispatch(new FilterUserResponseEvent($user, $request, $response), NucleosProfileEvents::PROFILE_EDIT_COMPLETED); + return $response; } private function createForm(UserInterface $user): FormInterface
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L112
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createForm(UserInterface $user): FormInterface { - return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']); + return $this->formFactory->create(ProfileFormType::class, $user, [])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']); } }
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L113
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createForm(UserInterface $user): FormInterface { - return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']); + return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']); } }
run / Mutation Tests (8.4): src/Action/EditProfileAction.php#L115
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createForm(UserInterface $user): FormInterface { - return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, ['label' => 'profile.edit.submit']); + return $this->formFactory->create(ProfileFormType::class, $user, ['validation_groups' => ['Profile', 'User', 'Default']])->add('save', SubmitType::class, []); } }