Skip to content

Try make psalm work #23

Try make psalm work

Try make psalm work #23

Triggered via push May 20, 2024 17:23
Status Success
Total duration 1m 12s
Artifacts 1

php.yml

on: push
Matrix: basic-tests
Quality control
30s
Quality control
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 13 warnings
Quality control
Process completed with exit code 1.
PossiblyInvalidArgument: certinfo.php#L11
certinfo.php:11:25: PossiblyInvalidArgument: Argument 1 of addslashes expects string, but possibly different type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string provided (see https://psalm.dev/092)
RiskyTruthyFalsyComparison: certinfo.php#L61
certinfo.php:61:5: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PossiblyInvalidArgument: dcv.php#L23
dcv.php:23:25: PossiblyInvalidArgument: Argument 1 of addslashes expects string, but possibly different type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string provided (see https://psalm.dev/092)
RiskyTruthyFalsyComparison: dcv.php#L35
dcv.php:35:27: RiskyTruthyFalsyComparison: Operand of type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: dcv.php#L36
dcv.php:36:22: RiskyTruthyFalsyComparison: Operand of type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: dcv.php#L63
dcv.php:63:9: RiskyTruthyFalsyComparison: Operand of type Pdp\ResolvedDomainName|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: dcv.php#L124
dcv.php:124:5: RiskyTruthyFalsyComparison: Operand of type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PossiblyInvalidArgument: dcv.php#L137
dcv.php:137:18: PossiblyInvalidArgument: Argument 1 of parse_url expects string, but possibly different type mixed|non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|non-falsy-string provided (see https://psalm.dev/092)
PossiblyUndefinedArrayOffset: dcv.php#L138
dcv.php:138:5: PossiblyUndefinedArrayOffset: Possibly undefined array key $url['scheme'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme?: string, user?: string}|false (see https://psalm.dev/167)
PossiblyUndefinedArrayOffset: dcv.php#L139
dcv.php:139:34: PossiblyUndefinedArrayOffset: Possibly undefined array key $url['host'] on array{fragment?: string, host?: string, pass?: string, path?: string, port?: int, query?: string, scheme: 'http'|'https', user?: string}|false (see https://psalm.dev/167)
Syntax and unit tests, PHP 8.1, ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Quality control
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Quality control
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
MissingReturnType: certinfo.php#L7
certinfo.php:7:10: MissingReturnType: Method sendResponse does not have a return type, expecting never (see https://psalm.dev/050)
MissingParamType: certinfo.php#L7
certinfo.php:7:23: MissingParamType: Parameter $response has no provided type (see https://psalm.dev/154)
MissingParamType: certinfo.php#L7
certinfo.php:7:34: MissingParamType: Parameter $status has no provided type (see https://psalm.dev/154)
MissingReturnType: certinfo.php#L33
certinfo.php:33:10: MissingReturnType: Method getOpenSSLInfo does not have a return type (see https://psalm.dev/050)
MissingParamType: certinfo.php#L33
certinfo.php:33:25: MissingParamType: Parameter $pem has no provided type (see https://psalm.dev/154)
MissingParamType: certinfo.php#L33
certinfo.php:33:31: MissingParamType: Parameter $arg has no provided type (see https://psalm.dev/154)
MissingReturnType: dcv.php#L19
dcv.php:19:10: MissingReturnType: Method sendResponse does not have a return type, expecting never (see https://psalm.dev/050)
MissingParamType: dcv.php#L19
dcv.php:19:23: MissingParamType: Parameter $response has no provided type (see https://psalm.dev/154)
MissingParamType: dcv.php#L19
dcv.php:19:34: MissingParamType: Parameter $status has no provided type (see https://psalm.dev/154)
MissingReturnType: dcv.php#L51
dcv.php:51:10: MissingReturnType: Method getPublicSuffix does not have a return type (see https://psalm.dev/050)

Artifacts

Produced during runtime
Name Size
build-data Expired
243 KB