Skip to content

Fix AH invalid refresh token handling #102

Fix AH invalid refresh token handling

Fix AH invalid refresh token handling #102

Triggered via pull request January 31, 2024 21:20
Status Failure
Total duration 1m 0s
Artifacts

psalm.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
build: ../../incl/configProcessing.inc.php#L109
Const DEFAULT_LOOKUP_LANGUAGE is not defined (see https://psalm.dev/020)
build: ../../incl/curl.inc.php#L161
Argument 1 of DatabaseConnection::saveLog expects string, bool|string provided (see https://psalm.dev/012)
build: ../../incl/curl.inc.php#L174
Argument 1 of DatabaseConnection::saveLog expects string, bool|string provided (see https://psalm.dev/012)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L62
Argument 1 of ProviderAlbertHeijn::updateAuthToken cannot be null, possibly null value provided (see https://psalm.dev/078)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L71
Argument 1 of ProviderAlbertHeijn::updateAuthToken cannot be null, possibly null value provided (see https://psalm.dev/078)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L86
The declared return type 'array<array-key, mixed>|null' for ProviderAlbertHeijn::newAuthToken is incorrect, got 'ArrayAccess|array{access_token: mixed}|null' (see https://psalm.dev/011)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L94
The inferred type 'ArrayAccess|array{access_token: mixed}' does not match the declared return type 'array<array-key, mixed>|null' for ProviderAlbertHeijn::newAuthToken (see https://psalm.dev/128)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L97
The declared return type 'array<array-key, mixed>|null' for ProviderAlbertHeijn::refreshToken is incorrect, got 'ArrayAccess|array{access_token: mixed}|null' (see https://psalm.dev/011)
build: ../../incl/lookupProviders/ProviderAlbertHeijn.php#L110
The inferred type 'ArrayAccess|array{access_token: mixed}' does not match the declared return type 'array<array-key, mixed>|null' for ProviderAlbertHeijn::refreshToken (see https://psalm.dev/128)
build: ../../incl/uiEditor.inc.php#L733
Parameter $asHtml has no provided type (see https://psalm.dev/154)
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
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/