Skip to content

Ensure generators aren't reused from failed state #32

Ensure generators aren't reused from failed state

Ensure generators aren't reused from failed state #32

Triggered via pull request October 23, 2023 13:11
Status Failure
Total duration 56s
Artifacts

ci.yaml

on: pull_request
Static Analysis and Validation
37s
Static Analysis and Validation
Coding Standards
17s
Coding Standards
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 8 warnings
Static Analysis and Validation: src/Deferred.php#L54
Property Later\Deferred<T>::$error (Throwable) does not accept null.
Static Analysis and Validation: tests/DeferredTest.php#L107
Method Tests\Later\DeferredTest::generatorThrows() return type has no value type specified in iterable type iterable.
MissingTemplateParam: src/Deferred.php#L31
src/Deferred.php:31:33: MissingTemplateParam: Later\Deferred has missing template params when extending Later\Interfaces\Deferred, expecting 1 (see https://psalm.dev/182)
PossiblyNullPropertyAssignmentValue: src/Deferred.php#L54
src/Deferred.php:54:24: PossiblyNullPropertyAssignmentValue: $this->error with non-nullable declared type 'Throwable' cannot be assigned nullable type 'null' (see https://psalm.dev/148)
RedundantConditionGivenDocblockType: src/Deferred.php#L62
src/Deferred.php:62:13: RedundantConditionGivenDocblockType: Docblock-defined type Throwable can never contain null (see https://psalm.dev/156)
MissingTemplateParam: src/Immediate.php#L29
src/Immediate.php:29:34: MissingTemplateParam: Later\Immediate has missing template params when extending Later\Interfaces\Deferred, expecting 1 (see https://psalm.dev/182)
Static Analysis and Validation
Process completed with exit code 2.
Test with PHP 8.2
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test with PHP 8.0
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test with PHP 8.1
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Coding Standards
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test with PHP 7.4
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis and Validation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis and Validation: src/Deferred.php#L70
Escaped Mutant for Mutator "UnwrapFinally": --- Original +++ New @@ @@ } catch (\Throwable $e) { $this->error = $e; throw $e; - } finally { - $this->input = null; } + $this->input = null; return $this->output; } }
Test with PHP 8.3
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/