Skip to content

[FRAM-103] Handle optional form (#7) #34

[FRAM-103] Handle optional form (#7)

[FRAM-103] Handle optional form (#7) #34

Triggered via push May 2, 2023 08:17
Status Success
Total duration 3m 29s
Artifacts

php.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

19 warnings
PHP 7.4
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 7.2
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 7.1
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 7.3
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Test coverage
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 8.1
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 8.0
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
PHP 8.2
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Analysis
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Analysis: src/Aggregate/ArrayElementBuilder.php#L375
Escaped Mutant: --- Original +++ New @@ @@ /** * {@inheritdoc} */ - protected function registry() : RegistryInterface + private function registry() : RegistryInterface { return $this->registry; } }
Analysis: 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
Analysis: 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()])) {
Analysis: 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);
Analysis: 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);
Analysis: 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
Analysis: 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;
Analysis: 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}
Analysis: 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}
Analysis: 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}