Skip to content

Fix "error 'component' is defined but never used". #62

Fix "error 'component' is defined but never used".

Fix "error 'component' is defined but never used". #62

Triggered via push January 23, 2024 10:50
Status Failure
Total duration 41s
Artifacts

ci.yaml

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

Annotations

37 errors and 10 warnings
phpunit / PHP 8.1 WordPress 6.3
Process completed with exit code 1.
coverage / coverage
Script "coverage" is not defined in this package
coverage / coverage
Process completed with exit code 1.
phpunit / PHP 8.1 WordPress 6.1
Process completed with exit code 1.
phpunit / PHP 8.0 WordPress 6.2
Process completed with exit code 1.
phpunit / PHP 8.1 WordPress 6.2
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.1 WordPress 6.2
Process completed with exit code 1.
phpunit / PHP 8.0 WordPress 6.1
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.0 WordPress 6.1
Process completed with exit code 1.
phpcs / phpcs: pronamic-pay-adyen.php#L40
Expected 1 space after FUNCTION keyword; 0 found
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
Missing file doc comment
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
Short array syntax must be used to define arrays
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
Expected 1 space after the array opener in a single line array. Found: no spaces
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
Short array syntax must be used to define arrays
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
When a multi-item array uses associative keys, each value should start on a new line.
phpcs / phpcs: js/dist/checkout-drop-in.asset.php#L1
Expected 1 space before the array closer in a single line array. Found: no spaces
phpcs / phpcs: src/Client.php#L76
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$response'.
phpcs / phpcs: src/Client.php#L77
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$response'.
phpcs / phpcs: src/AbstractPaymentRequest.php#L309
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$country_code'.
phpunit / PHP 8.0 WordPress 6.3
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.2 WordPress 6.1
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.0 WordPress 6.3
Process completed with exit code 1.
phpunit / PHP 8.2 WordPress 6.1
The operation was canceled.
phpunit / PHP 8.2 WordPress 6.2
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.2 WordPress 6.2
The operation was canceled.
phpunit / PHP 8.2 WordPress 6.3
The job was canceled because "_8_1_6_3" failed.
phpunit / PHP 8.2 WordPress 6.3
The operation was canceled.
phpstan / phpstan: src/BrowserInformation.php#L348
Return type of Pronamic\WordPress\Pay\Gateways\Adyen\BrowserInformation::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
phpstan / phpstan: src/Gateway.php#L84
Parameter #1 $string of function md5 expects string, string|false given.
phpstan / phpstan: src/Gateway.php#L119
Method Pronamic\WordPress\Pay\Gateways\Adyen\Gateway::get_payment_methods() has parameter $args with no value type specified in iterable type array.
phpstan / phpstan: src/Gateway.php#L135
Parameter #1 $string of function md5 expects string, string|false given.
phpstan / phpstan: src/Gateway.php#L150
Parameter #1 $id of method Pronamic\WordPress\Pay\Core\Gateway::get_payment_method() expects string, string|null given.
phpstan / phpstan: src/Gateway.php#L221
Parameter #1 $type of class Pronamic\WordPress\Pay\Gateways\Adyen\PaymentMethodDetails constructor expects string, string|null given.
phpstan / phpstan: src/Integration.php#L549
Parameter #1 $url of function esc_url expects string, string|null given.
phpstan / phpstan: src/PaymentMethodDetails.php#L40
Return type of Pronamic\WordPress\Pay\Gateways\Adyen\PaymentMethodDetails::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
phpstan / phpstan: src/ReturnController.php#L271
Method Pronamic\WordPress\Pay\Gateways\Adyen\ReturnController::rest_api_adyen_redirect_permission() should return bool but returns int|false.
phpstan / phpstan: src/ReturnController.php#L353
Method Pronamic\WordPress\Pay\Gateways\Adyen\ReturnController::rest_api_adyen_error_permission() should return bool but returns int|false.
phpcs / phpcs: src/Util.php#L25
It is recommended not to use reserved keyword "array" as function parameter name. Found: $array
phpcs / phpcs: tests/src/AmountTest.php#L52
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/DetailsInformation.php#L78
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/ObjectAccess.php#L29
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/PaymentResponseAction.php#L56
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/PaymentResponse.php#L46
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/Error.php#L76
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/PaymentDetailsResponse.php#L30
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/PaymentSessionResponse.php#L73
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/ServiceException.php#L104
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object