Skip to content

Fix running PHPStan. #24

Fix running PHPStan.

Fix running PHPStan. #24

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

ci.yaml

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

Annotations

10 errors
phpstan / phpstan: src/CharitableHelper.php#L48
Parameter #1 $value of function strval expects bool|float|int|resource|string|null, mixed given.
phpstan / phpstan: src/Extension.php#L138
Method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() has parameter $field with no value type specified in iterable type array.
phpstan / phpstan: src/Extension.php#L138
Parameter $form of method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() has invalid type Pronamic\WordPress\Pay\Extensions\Charitable\Charitable_Form.
phpstan / phpstan: src/Extension.php#L138
Parameter $template of method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() has invalid type Pronamic\WordPress\Pay\Extensions\Charitable\Charitable_Template.
phpstan / phpstan: src/Extension.php#L140
Method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() should return string|false but returns Pronamic\WordPress\Pay\Extensions\Charitable\Charitable_Template|false.
phpstan / phpstan: src/Extension.php#L144
Method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() should return string|false but returns Pronamic\WordPress\Pay\Extensions\Charitable\Charitable_Template|false.
phpstan / phpstan: src/Extension.php#L148
Method Pronamic\WordPress\Pay\Extensions\Charitable\Extension::form_field_template() should return string|false but returns Pronamic\WordPress\Pay\Extensions\Charitable\Charitable_Template|false.
phpstan / phpstan: src/Gateway.php#L124
Parameter #1 $value of function intval expects array|bool|float|int|resource|string|null, mixed given.
phpstan / phpstan: src/Gateway.php#L128
Parameter #1 $value of function intval expects array|bool|float|int|resource|string|null, mixed given.
phpstan / phpstan: src/Gateway.php#L143
Unsafe usage of new static().