Skip to content

Update pronamic-pay-woocommerce.php #189

Update pronamic-pay-woocommerce.php

Update pronamic-pay-woocommerce.php #189

Triggered via push March 20, 2024 11:36
Status Failure
Total duration 1m 40s
Artifacts

ci.yaml

on: push
Matrix: phplint / phplint
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 15 warnings
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L9
Opening brace should be on the same line as the declaration for class CronExpression_MonthField
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L10
Tabs must be used to indent lines; spaces are not allowed
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L11
Tabs must be used to indent lines; spaces are not allowed
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L12
Tabs must be used to indent lines; spaces are not allowed
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L13
Tabs must be used to indent lines; spaces are not allowed
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L13
Expected 1 spaces after opening parenthesis; 0 found
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L13
Expected 1 spaces before closing parenthesis; 0 found
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L14
Tabs must be used to indent lines; spaces are not allowed
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L14
Opening brace should be on the same line as the declaration
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L15
Tabs must be used to indent lines; spaces are not allowed
phpstan / phpstan: src/Extension.php#L598
Cannot call method get_meta() on WC_Order|WC_Order_Refund|true.
phpstan / phpstan: src/Extension.php#L598
Cannot cast mixed to int.
phpstan / phpstan: src/Extension.php#L682
Parameter #2 ...$values of function sprintf expects bool|float|int|string|null, mixed given.
phpstan / phpstan: src/Extension.php#L714
Cannot call method get_type() on WC_Order|WC_Order_Refund|true.
phpstan / phpstan: src/Extension.php#L730
Parameter #1 $order of static method Pronamic\WordPress\Pay\Extensions\WooCommerce\WooCommerce::get_payment_method_title() expects WC_Order, WC_Order|WC_Order_Refund|true given.
phpstan / phpstan: src/Extension.php#L740
Parameter #1 $text of function esc_html expects string, int|null given.
phpstan / phpstan: src/Extension.php#L741
Parameter #1 $text of function esc_html expects string, mixed given.
phpstan / phpstan: src/Extension.php#L742
Parameter #1 $text of function esc_html expects string, string|null given.
phpstan / phpstan: src/Extension.php#L765
Cannot call method get_status() on WC_Order|WC_Order_Refund|true.
phpstan / phpstan: src/Extension.php#L765
Cannot call method needs_payment() on WC_Order|WC_Order_Refund|true.
phplint / PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phplint / PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phplint / PHP 8.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpcs / phpcs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L34
This comment is 67% valid code; is this commented out code?
phpcs / phpcs: packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L39
This comment is 67% valid code; is this commented out code?
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php#L35
Use of a direct database call is discouraged.
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php#L50
Use of a direct database call is discouraged.
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php#L50
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php#L114
Use of a direct database call is discouraged.
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php#L114
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php#L83
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/ActionScheduler_Compatibility.php#L52
Silencing errors is strongly discouraged. Use proper error checking instead. Found: @ini_get( 'memory_limit' ...
phpstan / phpstan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.