Add ErrorSummary::listClass()
and ErrorSummary::addListClass()
#1384
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 warnings
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L45
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
public final function addContainerAttributes(array $attributes) : static
{
$new = clone $this;
- $new->containerAttributes = array_merge($new->containerAttributes, $attributes);
+ $new->containerAttributes = $new->containerAttributes;
return $new;
}
/**
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L45
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
public final function addContainerAttributes(array $attributes) : static
{
$new = clone $this;
- $new->containerAttributes = array_merge($new->containerAttributes, $attributes);
+ $new->containerAttributes = $attributes;
return $new;
}
/**
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L100
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
parent::begin();
$this->isStartedByBegin = true;
- $this->beforeRender();
+
$content = $this->generateBeginContent();
return $this->renderOpenContainerAndContent($content);
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L110
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public final function render() : string
{
if ($this->isStartedByBegin) {
- $this->isStartedByBegin = false;
+ $this->isStartedByBegin = true;
return $this->renderEnd();
}
$this->beforeRender();
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L136
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
}
protected abstract function generateContent() : ?string;
- protected function generateBeginContent() : string
+ private function generateBeginContent() : string
{
return '';
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/BaseField.php#L141
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return '';
}
- protected function generateEndContent() : string
+ private function generateEndContent() : string
{
return '';
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/DateTimeInputField.php#L148
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function beforeRender() : void
{
- parent::beforeRender();
+
if ($this->enrichmentFromRules && $this->hasFormModelAndAttribute()) {
foreach ($this->getFormAttributeValidationRules() as $rule) {
if ($rule instanceof WhenInterface && $rule->getWhen() !== null) {
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/DateTimeInputField.php#L149
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
protected function beforeRender() : void
{
parent::beforeRender();
- if ($this->enrichmentFromRules && $this->hasFormModelAndAttribute()) {
+ if ($this->enrichmentFromRules || $this->hasFormModelAndAttribute()) {
foreach ($this->getFormAttributeValidationRules() as $rule) {
if ($rule instanceof WhenInterface && $rule->getWhen() !== null) {
continue;
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/DateTimeInputField.php#L152
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
if ($this->enrichmentFromRules && $this->hasFormModelAndAttribute()) {
foreach ($this->getFormAttributeValidationRules() as $rule) {
if ($rule instanceof WhenInterface && $rule->getWhen() !== null) {
- continue;
+ break;
}
if ($rule instanceof Required) {
$this->inputAttributes['required'] = true;
|
mutation / PHP 8.1-ubuntu-latest:
src/Field/Base/DateTimeInputField.php#L182
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
protected abstract function getInputType() : string;
protected function prepareContainerAttributes(array &$attributes) : void
{
- if ($this->hasFormModelAndAttribute()) {
+ if (!$this->hasFormModelAndAttribute()) {
$this->addValidationClassToAttributes($attributes, $this->getFormModel(), $this->getFormAttributeName());
}
}
|