Merge rules from PHP attributes with rules provided via getRules()
method
#4580
Annotations
1 error and 2 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.3-ubuntu-latest:
src/DataSet/ObjectDataSet.php#L258
Escaped Mutant for Mutator "SpreadOneItem":
--- Original
+++ New
@@ @@
$rules[$key] = $value;
continue;
}
- $rules[$key] = is_iterable($rules[$key]) ? [...$value, ...$rules[$key]] : [...$value, $rules[$key]];
+ $rules[$key] = is_iterable($rules[$key]) ? [[...$value][0], ...$rules[$key]] : [...$value, $rules[$key]];
}
return $rules;
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Helper/ObjectParser.php#L265
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
$this->setCacheItem('labels', $labels);
- return $labels;
+ return count($labels) > 1 ? array_slice($labels, 0, 1, true) : $labels;
}
/**
* Returns a property value of the parsed object.
|