Skip to content

Fix Albert Heijn API calls & implement OAuth refresh for AH #100

Fix Albert Heijn API calls & implement OAuth refresh for AH

Fix Albert Heijn API calls & implement OAuth refresh for AH #100

Triggered via pull request January 30, 2024 22:04
@ForceuForceu
synchronize #234
fix-ah-api
Status Failure
Total duration 56s
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#L112
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/