Improve DI generation efficiency #28
Annotations
2 warnings
src/Form/Extension/FormTypeAntiSpamExtension.php#L76
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$config = $child->getConfig();
$type = $config->getType();
while (null !== $type) {
- if ($type->getInnerType() instanceof TextType) {
+ if (true) {
$options = $config->getOptions();
$this->applyTextTypeProfile($options, $profile);
$event->getForm()->add($name, $type->getInnerType()::class, $options);
|
src/Form/Type/SubmitTimerType.php#L82
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
$currentIp = $this->requestStack->getMainRequest()?->getClientIp() ?? self::NO_IP;
if (null !== $currentIp && $ip !== $currentIp) {
- $this->createFormError($form, 'form.timer.mismatch_ip', ['original' => $ip, 'current' => $currentIp], cause: "The client IP address changed from {$ip} to {$currentIp}");
+ $this->createFormError($form, 'form.timer.mismatch_ip', ['current' => $currentIp], cause: "The client IP address changed from {$ip} to {$currentIp}");
}
$age = $this->now()->getTimestamp() - intval($ts);
if ($age < $options['min']) {
|
The logs for this run have expired and are no longer available.
Loading