[FRAM-126] Handle empty string on DateTimeElement and BooleanStringEl… #40
Annotations
11 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, szenius/set-timezone@v1.0. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/Aggregate/ArrayElementBuilder.php#L375
Escaped Mutant:
--- Original
+++ New
@@ @@
/**
* {@inheritdoc}
*/
- protected function registry() : RegistryInterface
+ private function registry() : RegistryInterface
{
return $this->registry;
}
}
|
src/Aggregate/Collection/DependencyIterator.php#L88
Escaped Mutant:
--- Original
+++ New
@@ @@
}
// Create the new iterator, and reset
$this->levelIterator = $this->currentLevel->getIterator();
- $this->levelIterator->rewind();
+
}
// The children is not already registered
// We should skip this step
|
src/Aggregate/Collection/DependencyIterator.php#L124
Escaped Mutant:
--- Original
+++ New
@@ @@
{
$this->currentLevel = $this->first;
$this->levelIterator = $this->currentLevel->getIterator();
- $this->levelIterator->rewind();
+
// The child is not registered, we should go next
// Or the iterator is not valid
if (!$this->levelIterator->valid() || !isset($this->children[$this->key()])) {
|
src/Aggregate/Collection/DependencyTree.php#L96
Escaped Mutant:
--- Original
+++ New
@@ @@
return false;
}
$level = $this->level($name);
- if ($level->number() === 0) {
+ if ($level->number() === -1) {
// The child is not part of a dependency
// Web can remove from index safely
$level->remove($name);
|
src/Aggregate/Collection/DependencyTree.php#L96
Escaped Mutant:
--- Original
+++ New
@@ @@
return false;
}
$level = $this->level($name);
- if ($level->number() === 0) {
+ if ($level->number() !== 0) {
// The child is not part of a dependency
// Web can remove from index safely
$level->remove($name);
|
src/Aggregate/Collection/DependencyTree.php#L99
Escaped Mutant:
--- Original
+++ New
@@ @@
}
$level = $this->level($name);
if ($level->number() === 0) {
- // The child is not part of a dependency
- // Web can remove from index safely
- $level->remove($name);
+
unset($this->depth[$name]);
} else {
// The child is part of a dependency
|
src/Aggregate/Collection/DependencyTree.php#L104
Escaped Mutant:
--- Original
+++ New
@@ @@
$level->remove($name);
unset($this->depth[$name]);
} else {
- // The child is part of a dependency
- // Keep it in the index, but remove its dependencies
- $level->reset($name);
+
}
unset($this->children[$name]);
return true;
|
src/Aggregate/Form.php#L315
Escaped Mutant:
--- Original
+++ New
@@ @@
*/
public function offsetSet($offset, $value) : void
{
- throw new BadMethodCallException(__CLASS__ . ' is immutable');
+ throw new BadMethodCallException(__CLASS__);
}
/**
* {@inheritdoc}
|
src/Aggregate/Form.php#L315
Escaped Mutant:
--- Original
+++ New
@@ @@
*/
public function offsetSet($offset, $value) : void
{
- throw new BadMethodCallException(__CLASS__ . ' is immutable');
+ throw new BadMethodCallException(' is immutable');
}
/**
* {@inheritdoc}
|
src/Aggregate/Form.php#L315
Escaped Mutant:
--- Original
+++ New
@@ @@
*/
public function offsetSet($offset, $value) : void
{
- throw new BadMethodCallException(__CLASS__ . ' is immutable');
+ throw new BadMethodCallException(' is immutable' . __CLASS__);
}
/**
* {@inheritdoc}
|
The logs for this run have expired and are no longer available.
Loading