Skip to content

Fix PHPStan

Fix PHPStan #211

Triggered via push June 19, 2024 11:26
Status Success
Total duration 1m 53s
Artifacts 1

ci.yaml

on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
2s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

24 warnings
Static analysis (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Coding standard (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.2, --ignore-platform-req=php+, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ public function extractForm(Presenter $presenter) : void { $signal = $presenter->getSignal(); - if ($signal === null || count($signal) < 2) { + if ($signal === null || count($signal) <= 2) { return; } array_pop($signal);
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThanNegotiation": --- Original +++ New @@ @@ public function extractForm(Presenter $presenter) : void { $signal = $presenter->getSignal(); - if ($signal === null || count($signal) < 2) { + if ($signal === null || count($signal) >= 2) { return; } array_pop($signal);
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L53
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function getErrors() : array { $errors = []; - foreach ($this->formStack->getAll() as $name => $form) { + foreach (array() as $name => $form) { $formErrors = $this->errorExtractor->getErrors($form); if ($formErrors !== []) { $errors[$name] = $formErrors;
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L56
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $errors = []; foreach ($this->formStack->getAll() as $name => $form) { $formErrors = $this->errorExtractor->getErrors($form); - if ($formErrors !== []) { + if ($formErrors === []) { $errors[$name] = $formErrors; } }
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L61
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $errors[$name] = $formErrors; } } - return $errors; + return count($errors) > 1 ? array_slice($errors, 0, 1, true) : $errors; } }
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L31
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private ServiceDefinition $inspectorDefinition; public function getConfigSchema() : Schema { - return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]); + return Expect::structure(['_dev' => Expect::bool(true), 'enabled' => Expect::bool(false)]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L32
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private ServiceDefinition $inspectorDefinition; public function getConfigSchema() : Schema { - return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]); + return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(true)]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L38
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function loadConfiguration() : void { - parent::loadConfiguration(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L49
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ if (!$config->enabled) { return; } - $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(false); + $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(true); } public function beforeCompile() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L54
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function beforeCompile() : void { - parent::beforeCompile(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Tests (windows-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (windows-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (windows-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Logs - Mutations". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
163 KB