Skip to content

[FRAM-166] Improve APIs #50

[FRAM-166] Improve APIs

[FRAM-166] Improve APIs #50

Triggered via pull request April 15, 2024 10:13
Status Success
Total duration 3m 28s
Artifacts

php.yml

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

Annotations

30 warnings
PHP 8.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.3
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/
PHP 7.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.1
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/
PHP 7.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.2
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/
Test coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test coverage
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/
PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.2
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/
PHP 7.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.4
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/
PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1
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/
PHP 8.0
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.0
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/
PHP 7.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.3
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/
Analysis
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, szenius/set-timezone@v1.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Analysis
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/
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#L90
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#L126
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#L99
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#L99
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#L102
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#L107
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#L323
Escaped Mutant: --- Original +++ New @@ @@ */ public function offsetSet($offset, $value) : void { - throw new BadMethodCallException(__CLASS__ . ' is immutable'); + throw new BadMethodCallException(__CLASS__); } /** * {@inheritdoc}
Analysis: src/Aggregate/Form.php#L323
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#L323
Escaped Mutant: --- Original +++ New @@ @@ */ public function offsetSet($offset, $value) : void { - throw new BadMethodCallException(__CLASS__ . ' is immutable'); + throw new BadMethodCallException(' is immutable'); } /** * {@inheritdoc}