Skip to content

PHPCS Fix

PHPCS Fix #57

Triggered via push June 13, 2026 12:57
Status Failure
Total duration 59s
Artifacts

ci.yaml

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

Annotations

36 errors and 13 warnings
phpunit / PHP 8.4 WordPress 6.7
Process completed with exit code 255.
phpunit / PHP 8.2 WordPress 6.6
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.3 WordPress 6.7
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.3 WordPress 6.8
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.3 WordPress 6.8
Process completed with exit code 255.
phpunit / PHP 8.2 WordPress 6.7
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.2 WordPress 6.7
The operation was canceled.
phpunit / PHP 8.3 WordPress 6.6
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.3 WordPress 6.6
The operation was canceled.
phpunit / PHP 8.2 WordPress 6.8
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.2 WordPress 6.8
The operation was canceled.
phpunit / PHP 8.4 WordPress 6.6
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.4 WordPress 6.6
The operation was canceled.
phpunit / PHP 8.4 WordPress 6.8
The strategy configuration was canceled because "phpunit.phpunit._8_4_6_7" failed
phpunit / PHP 8.4 WordPress 6.8
The operation was canceled.
coverage / coverage
Process completed with exit code 255.
phpstan / phpstan: views/meta-box-gateway-settings.php#L169
Offset 'group' on array{section: 'payment_methods', title: string, type: 'custom', callback: Closure(): void} in isset() does not exist.
phpstan / phpstan: views/meta-box-gateway-settings.php#L163
Offset 'methods' on array{section: 'payment_methods', title: string, type: 'custom', callback: Closure(): void} in isset() does not exist.
phpstan / phpstan: src/Subscriptions/SubscriptionsDataStoreCPT.php#L330
Parameter #1 $json of function json_decode expects string, array<int>|int|string given.
phpstan / phpstan: src/Subscriptions/SubscriptionsDataStoreCPT.php#L326
Parameter #1 $datetime of class Pronamic\WordPress\DateTime\DateTime constructor expects string, array<int>|int|string given.
phpstan / phpstan: src/Payments/PaymentsDataStoreCPT.php#L338
Parameter #1 $slug of method Pronamic\WordPress\Pay\Payments\Payment::set_slug() expects string, array<int>|int|string given.
phpstan / phpstan: src/Payments/PaymentsDataStoreCPT.php#L332
Parameter #1 $json of function json_decode expects string, array<int>|int|string given.
phpstan / phpstan: src/Payments/PaymentsDataStoreCPT.php#L326
Parameter #1 $datetime of class Pronamic\WordPress\DateTime\DateTime constructor expects string, array<int>|int|string given.
phpstan / phpstan: src/Fields/SelectField.php#L45
Property Pronamic\WordPress\Pay\Fields\SelectField::$options (iterable<Pronamic\WordPress\Pay\Fields\SelectFieldOption|Pronamic\WordPress\Pay\Fields\SelectFieldOptionGroup>) does not accept iterable<Pronamic\WordPress\Pay\Fields\CachedCallbackOptions|Pronamic\WordPress\Pay\Fields\SelectFieldOption|Pronamic\WordPress\Pay\Fields\SelectFieldOptionGroup>.
phpstan / phpstan: src/Core/PaymentMethods.php#L589
Constant KNITPAY_URL not found.
phpstan / phpstan: src/Core/PaymentMethods.php#L586
Constant KNITPAY_DIR not found.
phpcs / phpcs: src/Plugin.php#L587
Comment closer must be on a new line
phpcs / phpcs: src/Plugin.php#L584
Block comments must start with a capital letter
phpcs / phpcs: src/Plugin.php#L583
Empty line required before block comment
phpcs / phpcs: src/Admin/AdminGatewayPostType.php#L401
Inline comments must end in full-stops, exclamation marks, or question marks
phpcs / phpcs: src/Admin/AdminGatewayPostType.php#L401
No space found before comment text; expected "// \delete_post_meta( $post_id, '_pronamic_gateway_mode' );" but found "//\delete_post_meta( $post_id, '_pronamic_gateway_mode' );"
phpcs / phpcs: views/follow-us.php#L9
Missing @Package tag in file comment
phpcs / phpcs: views/page-dashboard.php#L443
Mismatched text domain. Expected 'pronamic_ideal' but got 'knit-pay'.
phpcs / phpcs: views/page-dashboard.php#L441
Mismatched text domain. Expected 'pronamic_ideal' but got 'knit-pay'.
phpcs / phpcs: views/page-dashboard.php#L432
Mismatched text domain. Expected 'pronamic_ideal' but got 'knit-pay'.
phpcs / phpcs: src/Core/PaymentMethods.php#L529
Space found before comma in argument list
phpunit / PHP 8.4 WordPress 6.7
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.3 WordPress 6.8
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.2 WordPress 6.7
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.3 WordPress 6.6
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.2 WordPress 6.8
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.4 WordPress 6.6
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpunit / PHP 8.4 WordPress 6.8
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
coverage / coverage
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpstan / phpstan
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpcs / phpcs
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
phpcs / phpcs: src/Payments/PaymentsDataStoreCPT.php#L812
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
phpcs / phpcs: src/Plugin.php#L583
This comment is 56% valid code; is this commented out code?
phpcs / phpcs: src/AbstractDataStoreCPT.php#L208
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.