Ensure generators aren't reused from failed state #32
Annotations
7 errors and 2 warnings
Static Analysis:
src/Deferred.php#L54
Property Later\Deferred<T>::$error (Throwable) does not accept null.
|
Static Analysis:
tests/DeferredTest.php#L107
Method Tests\Later\DeferredTest::generatorThrows() return type has no value type specified in iterable type iterable.
|
Static Analysis:
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)
|
Static Analysis:
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)
|
Static Analysis:
src/Deferred.php#L62
src/Deferred.php:62:13: RedundantConditionGivenDocblockType: Docblock-defined type Throwable can never contain null (see https://psalm.dev/156)
|
Static Analysis:
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
Process completed with exit code 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/
|
Static Analysis:
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;
}
}
|
The logs for this run have expired and are no longer available.
Loading