Add German translation (#28) #176
Annotations
1 warning
PHP 8.2 stable dependencies:
src/EventSubscriber/FormProfileSubscriber.php#L129
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$form = $event->getForm();
$request = $this->requestStack->getMainRequest();
$result = new AntiSpamFormResult($form, $request, $this->profile);
- $this->eventDispatcher->dispatch(new FormProcessedEvent($result), AntiSpamEvents::FORM_PROCESSED);
+
AntiSpam::setLastResult($result);
if ($result->hasAntiSpamErrors()) {
$this->logger?->info(sprintf('Form submission from IP %s at %s violated anti-spam rules', $request?->getClientIp() ?? 'unknown', $request?->getRequestUri() ?? 'unknown'));
|