Fix running PHPStan. #24
ci.yaml
on: push
phpcs
/
phpcs
16s
phpstan
/
phpstan
22s
Matrix: phplint / phplint
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().
|