Skip to content

phpcbf

phpcbf #39

Triggered via push October 9, 2023 13:59
Status Failure
Total duration 47s
Artifacts

ci.yaml

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

Annotations

20 errors and 10 warnings
phpcs / phpcs: src/PaymentBrandForce.php#L20
All classes should be declared using either the "abstract" or "final" keyword.
phpcs / phpcs: tests/src/PaymentBrandsTest.php#L23
All classes should be declared using either the "abstract" or "final" keyword.
phpcs / phpcs: src/OrderResult.php#L1
An error occurred during processing; checking has been aborted. The error message was: Neither manual or alphabetical order is set.
phpcs / phpcs: src/OrderResult.php#L20
All classes should be declared using either the "abstract" or "final" keyword.
phpcs / phpcs: src/OrderResult.php#L98
Multi-line function declaration must have a trailing comma after the last parameter.
phpcs / phpcs: src/PaymentBrands.php#L22
All classes should be declared using either the "abstract" or "final" keyword.
phpcs / phpcs: src/PaymentBrands.php#L106
Keyed multi-line arrays must be sorted alphabetically.
phpcs / phpcs: src/OrderAnnounceResponse.php#L20
All classes should be declared using either the "abstract" or "final" keyword.
phpcs / phpcs: src/OrderAnnounceResponse.php#L111
Multi-line function calls must have a trailing comma after the last parameter.
phpcs / phpcs: src/OrderItem.php#L1
An error occurred during processing; checking has been aborted. The error message was: Neither manual or alphabetical order is set.
psalm / psalm
Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - symfony/console is locked to version v6.2.0 and an update of this package was not requested. - symfony/console v6.2.0 requires php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 2 - symfony/deprecation-contracts is locked to version v3.1.1 and an update of this package was not requested. - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 3 - symfony/service-contracts is locked to version v3.1.1 and an update of this package was not requested. - symfony/service-contracts v3.1.1 requires php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 4 - symfony/string is locked to version v6.2.0 and an update of this package was not requested. - symfony/string v6.2.0 requires php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 5 - symfony/console v6.2.0 requires php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. - vimeo/psalm 4.30.0 requires symfony/console ^3.4.17 || ^4.1.6 || ^5.0 || ^6.0 -> satisfiable by symfony/console[v6.2.0]. - vimeo/psalm is locked to version 4.30.0 and an update of this package was not requested.
psalm / psalm
Process completed with exit code 2.
phpstan / phpstan: src/Gateway.php#L84
Parameter #1 $string of function md5 expects string, string|false given.
phpstan / phpstan: src/Gateway.php#L178
Parameter #1 $string of function md5 expects string, string|false given.
phpstan / phpstan: src/Gateway.php#L196
Parameter #1 $key of function array_key_exists expects int|string, string|null given.
phpstan / phpstan: src/Gateway.php#L196
Parameter #2 $array of function array_key_exists expects array, mixed given.
phpstan / phpstan: src/Gateway.php#L197
Cannot access offset string|null on mixed.
phpstan / phpstan: src/Gateway.php#L443
Parameter #1 $transaction_id of class Pronamic\WordPress\Pay\Gateways\OmniKassa2\RefundRequest constructor expects string, string|null given.
phpstan / phpstan: src/WebhookController.php#L172
Dead catch - Pronamic\WordPress\Pay\Gateways\OmniKassa2\UnknownOrderIdsException is never thrown in the try block.
phpstan / phpstan
Process completed with exit code 1.
phpcs / phpcs: src/PaymentBrands.php#L128
It is recommended not to use reserved keyword "default" as function parameter name. Found: $default
phpcs / phpcs: src/OrderAnnounceResponse.php#L82
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/Error.php#L108
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/DataHelper.php#L134
It is recommended not to use reserved keyword "string" as function parameter name. Found: $string
phpcs / phpcs: tests/src/DataHelperTest.php#L31
It is recommended not to use reserved keyword "string" as function parameter name. Found: $string
phpcs / phpcs: tests/src/DataHelperTest.php#L75
It is recommended not to use reserved keyword "string" as function parameter name. Found: $string
phpcs / phpcs: src/Client.php#L125
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/RefundResponse.php#L49
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/OrderResults.php#L100
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
phpcs / phpcs: src/Notification.php#L141
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object