Skip to content

Fix running PHPStan. #39

Fix running PHPStan.

Fix running PHPStan. #39

Triggered via push August 12, 2024 15:47
Status Failure
Total duration 39s
Artifacts

ci.yaml

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

Annotations

20 errors and 10 warnings
phpstan / phpstan: src/AddOn.php#L27
Class Pronamic\WordPress\Pay\Extensions\EventEspresso\AddOn extends unknown class EE_Addon.
phpstan / phpstan: src/AddOn.php#L34
Method Pronamic\WordPress\Pay\Extensions\EventEspresso\AddOn::register_addon() has no return type specified.
phpstan / phpstan: src/AddOn.php#L66
Call to static method register() on an unknown class EE_Register_Addon.
phpstan / phpstan: src/AlipayPaymentMethod.php#L41
Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
phpstan / phpstan: src/AlipayPaymentMethod.php#L42
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_gateway.
phpstan / phpstan: src/AlipayPaymentMethod.php#L43
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_pretty_name.
phpstan / phpstan: src/AlipayPaymentMethod.php#L45
Parameter #1 $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\PaymentMethod::__construct() expects EE_Payment_Method|null, Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method|null given.
phpstan / phpstan: src/BancontactPaymentMethod.php#L41
Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
phpstan / phpstan: src/BancontactPaymentMethod.php#L42
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_gateway.
phpstan / phpstan: src/BancontactPaymentMethod.php#L43
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_pretty_name.
phpcs / phpcs: packages/woocommerce/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php#L19
Inline comments must end in full-stops, exclamation marks, or question marks
phpcs / phpcs: packages/wp-pay-gateways/mollie/assets/dist/wc-legacy-checkout.asset.php#L1
Short array syntax must be used to define arrays
phpcs / phpcs: packages/wp-pay-gateways/mollie/assets/dist/wc-legacy-checkout.asset.php#L1
Expected 1 space after the array opener in a single line array. Found: no spaces
phpcs / phpcs: packages/wp-pay-gateways/mollie/assets/dist/wc-legacy-checkout.asset.php#L1
Short array syntax must be used to define arrays
phpcs / phpcs: packages/wp-pay-gateways/mollie/assets/dist/wc-legacy-checkout.asset.php#L1
When a multi-item array uses associative keys, each value should start on a new line.
phpcs / phpcs: packages/wp-pay-gateways/mollie/assets/dist/wc-legacy-checkout.asset.php#L1
Expected 1 space before the array closer in a single line array. Found: no spaces
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/migration/Controller.php#L53
It is recommended not to use reserved keyword "class" as function parameter name. Found: $class
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/migration/Controller.php#L71
It is recommended not to use reserved keyword "class" as function parameter name. Found: $class
phpcs / phpcs: packages/woocommerce/action-scheduler/classes/migration/Controller.php#L145
Words in hook names should be separated using underscores. Expected: 'action_scheduler_migration_config', but found: 'action_scheduler/migration_config'.
phpcs / phpcs: packages/wp-pay/core/views/page-dashboard.php#L24
Found unknown capability "edit_payments" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap(). Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.