Skip to content

Payments : implemented PreCheckoutQuery, AnswerPreCheckoutQuery, #647

Payments : implemented PreCheckoutQuery, AnswerPreCheckoutQuery,

Payments : implemented PreCheckoutQuery, AnswerPreCheckoutQuery, #647

Triggered via push January 28, 2025 11:42
Status Failure
Total duration 38s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
phpstan: src/DTO/OrderInfo.php#L73
Cannot call method toArray() on DefStudio\Telegraph\DTO\ShippingAddress|null.
phpstan: src/DTO/PreCheckoutQuery.php#L49
Property DefStudio\Telegraph\DTO\PreCheckoutQuery::$totalAmount (int) does not accept string.
phpstan: src/DTO/PreCheckoutQuery.php#L79
Method DefStudio\Telegraph\DTO\PreCheckoutQuery::totalAmount() should return string but returns int.
phpstan: src/DTO/ShippingAddress.php#L56
Method DefStudio\Telegraph\DTO\ShippingAddress::state() should return int but returns string.
phpstan: src/DTO/ShippingAddress.php#L76
Method DefStudio\Telegraph\DTO\ShippingAddress::postCode() should return int|null but returns string.
phpstan: src/DTO/SuccessfulPayment.php#L51
Property DefStudio\Telegraph\DTO\SuccessfulPayment::$totalAmount (int) does not accept string.
phpstan: src/DTO/SuccessfulPayment.php#L52
Offset 'is_recurring' on array{currency: string, total_amount: string, invoice_payload: string, subscription_expiration_date?: string, is_recurring: bool, is_first_recurring: bool, shipping_option_id?: string, order_info?: array<string, mixed>, ...} on left side of ?? always exists and is not nullable.
phpstan: src/DTO/SuccessfulPayment.php#L53
Offset 'is_first_recurring' on array{currency: string, total_amount: string, invoice_payload: string, subscription_expiration_date?: string, is_recurring: bool, is_first_recurring: bool, shipping_option_id?: string, order_info?: array<string, mixed>, ...} on left side of ?? always exists and is not nullable.
phpstan: src/DTO/SuccessfulPayment.php#L55
Property DefStudio\Telegraph\DTO\SuccessfulPayment::$subscriptionExpirationDate (int|null) does not accept string|null.
phpstan: src/DTO/SuccessfulPayment.php#L77
Method DefStudio\Telegraph\DTO\SuccessfulPayment::totalAmount() should return string but returns int.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan
The `save-state` 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/
phpstan
The `save-state` 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/
phpstan
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/