Skip to content

Add missing imports (#423) #264

Add missing imports (#423)

Add missing imports (#423) #264

Triggered via push August 12, 2023 22:23
Status Failure
Total duration 35s
Artifacts

ci.yml

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

Annotations

22 errors and 6 warnings
InvalidDocblock: src/Closable.php#L18
src/Closable.php:18:5: InvalidDocblock: Invalid type 'Amp\@Codetrue' in docblock for Amp\Closable::isClosed (see https://psalm.dev/008)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L24
src/CompositeCancellation.php:24:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L25
src/CompositeCancellation.php:25:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L26
src/CompositeCancellation.php:26:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
InvalidArgument: src/Internal/FutureState.php#L43
src/Internal/FutureState.php:43:50: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
InvalidArgument: src/SignalCancellation.php#L43
src/SignalCancellation.php:43:108: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but non-empty-list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
InvalidArgument: src/TimeoutCancellation.php#L32
src/TimeoutCancellation.php:32:108: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but non-empty-list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
PossiblyNullReference: src/functions.php#L179
src/functions.php:179:34: PossiblyNullReference: Cannot call method bindTo on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/functions.php#L188
src/functions.php:188:26: PossiblyNullReference: Cannot call method call on possibly null value (see https://psalm.dev/083)
PHP 8.2
Process completed with exit code 2.
InvalidDocblock: src/Closable.php#L18
src/Closable.php:18:5: InvalidDocblock: Invalid type 'Amp\@Codetrue' in docblock for Amp\Closable::isClosed (see https://psalm.dev/008)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L24
src/CompositeCancellation.php:24:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L25
src/CompositeCancellation.php:25:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: src/CompositeCancellation.php#L26
src/CompositeCancellation.php:26:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
InvalidArgument: src/Internal/FutureState.php#L43
src/Internal/FutureState.php:43:50: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
InvalidArgument: src/SignalCancellation.php#L43
src/SignalCancellation.php:43:108: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but non-empty-list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
InvalidArgument: src/TimeoutCancellation.php#L32
src/TimeoutCancellation.php:32:108: InvalidArgument: Argument 1 of Amp\Internal\formatStacktrace expects list<array{args?: list<mixed>, class?: class-string, file: string, function: string, line: int, object?: object, type?: string}>, but non-empty-list<array{args?: list<mixed>, class?: class-string, file?: string, function: string, line?: int, object?: object, type?: string}> with additional array shape fields (file, line) was provided (see https://psalm.dev/004)
PossiblyNullReference: src/functions.php#L179
src/functions.php:179:34: PossiblyNullReference: Cannot call method bindTo on possibly null value (see https://psalm.dev/083)
PossiblyNullReference: src/functions.php#L188
src/functions.php:188:26: PossiblyNullReference: Cannot call method call on possibly null value (see https://psalm.dev/083)
PHP 8.1
Process completed with exit code 2.
PHP 8.1 on macOS
The operation was canceled.
PHP 8.1 on Windows
The operation was canceled.
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/
PHP 8.2
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
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/
PHP 8.1
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.1 on macOS
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. 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 on Windows
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/