Skip to content

Fix some PHPStan issues. #35

Fix some PHPStan issues.

Fix some PHPStan issues. #35

Triggered via push December 21, 2023 17:28
Status Failure
Total duration 45s
Artifacts

ci.yaml

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

Annotations

10 errors
phpstan / phpstan: src/Extension.php#L158
Cannot cast mixed to int.
phpstan / phpstan: src/Extension.php#L171
Parameter #1 $string of function urldecode expects string, mixed given.
phpstan / phpstan: src/Extension.php#L184
Constant WP_SESSION_COOKIE not found.
phpstan / phpstan: src/Extension.php#L207
Parameter #1 ...$arrays of function array_merge expects array, mixed given.
phpstan / phpstan: src/Extension.php#L208
Parameter #2 ...$arrays of function array_merge expects array, mixed given.
phpstan / phpstan: src/Extension.php#L259
Method Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::submission_actions() has parameter $actions with no value type specified in iterable type array.
phpstan / phpstan: src/Extension.php#L259
Method Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::submission_actions() has parameter $form_cache with no value type specified in iterable type array.
phpstan / phpstan: src/Extension.php#L259
Method Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::submission_actions() has parameter $form_data with no value type specified in iterable type array.
phpstan / phpstan: src/Extension.php#L259
Method Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::submission_actions() return type has no value type specified in iterable type array.
phpstan / phpstan: src/Extension.php#L334
Method Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::maybe_update_session_before_response() has parameter $data with no value type specified in iterable type array.