Skip to content

Refacto/payment method token #6223

Refacto/payment method token

Refacto/payment method token #6223

Triggered via pull request January 15, 2024 09:30
Status Failure
Total duration 1m 51s
Artifacts

php.yml

on: pull_request
Check license headers
11s
Check license headers
PHP Syntax check 7.2|7.3|7.4
42s
PHP Syntax check 7.2|7.3|7.4
PHP-CS-Fixer
1m 42s
PHP-CS-Fixer
PHPUnit
5s
PHPUnit
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 14 warnings
PHPStan (8.0.0): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQuery.php#L56
Property PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQuery::$customerId (PrestaShop\Module\PrestashopCheckout\PayPal\Customer\ValueObject\PayPalCustomerId) does not accept PrestaShop\Module\PrestashopCheckout\Customer\ValueObject\CustomerId.
PHPStan (8.0.0): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQuery.php#L67
Method PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQuery::getCustomerId() should return PrestaShop\Module\PrestashopCheckout\Customer\ValueObject\CustomerId but returns PrestaShop\Module\PrestashopCheckout\PayPal\Customer\ValueObject\PayPalCustomerId.
PHPStan (8.0.0): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQueryHandler.php#L73
Parameter #4 $totalPages of class PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQueryResult constructor expects int, float|null given.
PHPStan (8.0.0): src/PaymentMethodToken/ValueObject/PaymentMethodTokenId.php#L70
Regex pattern is invalid: No ending delimiter '^' found in pattern: ^[0-9a-zA-Z_-]+$
PHPStan (8.0.0)
Process completed with exit code 1.
PHPStan (latest): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQuery.php#L56
Property PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQuery::$customerId (PrestaShop\Module\PrestashopCheckout\PayPal\Customer\ValueObject\PayPalCustomerId) does not accept PrestaShop\Module\PrestashopCheckout\Customer\ValueObject\CustomerId.
PHPStan (latest): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQuery.php#L67
Method PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQuery::getCustomerId() should return PrestaShop\Module\PrestashopCheckout\Customer\ValueObject\CustomerId but returns PrestaShop\Module\PrestashopCheckout\PayPal\Customer\ValueObject\PayPalCustomerId.
PHPStan (latest): src/PaymentMethodToken/Query/GetCustomerPaymentMethodTokensQueryHandler.php#L73
Parameter #4 $totalPages of class PrestaShop\Module\PrestashopCheckout\PaymentMethodToken\Query\GetCustomerPaymentMethodTokensQueryResult constructor expects int, float|null given.
PHPStan (latest): src/PaymentMethodToken/ValueObject/PaymentMethodTokenId.php#L70
Regex pattern is invalid: No ending delimiter '^' found in pattern: ^[0-9a-zA-Z_-]+$
PHPStan (latest)
Process completed with exit code 1.
PHPUnit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
Check license headers
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
PHP Syntax check 7.2|7.3|7.4
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Syntax check 7.2|7.3|7.4
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/
PHP Syntax check 7.2|7.3|7.4
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 (8.0.0)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected], 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/
PHPStan (8.0.0)
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 (8.0.0)
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 (latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected], 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/
PHPStan (latest)
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 (latest)
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/
PHP-CS-Fixer
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP-CS-Fixer
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/
PHP-CS-Fixer
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/