Skip to content

Psalm fixes

Psalm fixes #19

Triggered via push August 20, 2023 17:38
Status Failure
Total duration 1m 36s
Artifacts

ci.yml

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

Annotations

8 errors and 6 warnings
MoreSpecificReturnType: lib/Rfc8484StubDoHResolver.php#L76
lib/Rfc8484StubDoHResolver.php:76:109: MoreSpecificReturnType: The declared return type 'non-empty-list<Amp\Dns\DnsRecord>' for Amp\DoH\Rfc8484StubDoHResolver::resolve is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/070)
LessSpecificReturnStatement: lib/Rfc8484StubDoHResolver.php#L125
lib/Rfc8484StubDoHResolver.php:125:20: LessSpecificReturnStatement: The type 'non-empty-array<array-key, mixed>' is more general than the declared return type 'non-empty-list<Amp\Dns\DnsRecord>' for Amp\DoH\Rfc8484StubDoHResolver::resolve (see https://psalm.dev/129)
InvalidReturnStatement: lib/Rfc8484StubDoHResolver.php#L186
lib/Rfc8484StubDoHResolver.php:186:28: InvalidReturnStatement: The inferred type 'list<Amp\Dns\DnsRecord>' does not match the declared return type 'non-empty-list<Amp\Dns\DnsRecord>' for Amp\DoH\Rfc8484StubDoHResolver::resolve (see https://psalm.dev/128)
InvalidReturnStatement: lib/Rfc8484StubDoHResolver.php#L351
lib/Rfc8484StubDoHResolver.php:351:16: InvalidReturnStatement: The inferred type 'list<Amp\Dns\DnsRecord>' does not match the declared return type 'non-empty-list<Amp\Dns\DnsRecord>' for Amp\DoH\Rfc8484StubDoHResolver::query (see https://psalm.dev/128)
UndefinedDocblockClass: test/DoHConfigTest.php#L34
test/DoHConfigTest.php:34:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\DoH\Test\Amp\DoH\DoHNameserver does not exist (see https://psalm.dev/200)
PHP 8.1
Process completed with exit code 2.
PHP 8.1 on Windows
The operation was canceled.
PHP 8.1 on macOS
The operation was canceled.
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 Windows
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 on Windows
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, 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 on macOS
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/