Skip to content

Add phpstan action

Add phpstan action #6

Triggered via pull request December 23, 2024 22:38
Status Failure
Total duration 51s
Artifacts

phpstan.yml

on: pull_request
WP latest on PHP 8.3
43s
WP latest on PHP 8.3
Fit to window
Zoom out
Zoom in

Annotations

10 errors
WP latest on PHP 8.3: includes/Admin.php#L311
Function commonsbooking_write_log() should return string but return statement is missing.
WP latest on PHP 8.3: includes/Template.php#L77
Function commonsbooking_get_template_part() should return string but return statement is missing.
WP latest on PHP 8.3: includes/TemplateParser.php#L88
Result of function commonsbooking_getCBType (void) is used.
WP latest on PHP 8.3: src/CB/CB1UserFields.php#L238
Function cb_object_to_array not found.
WP latest on PHP 8.3: src/Plugin.php#L763
Filter callback return statement is missing.
WP latest on PHP 8.3: src/Service/Cache.php (in context of class CommonsBooking/Plugin)#L217
is_wp_error(bool) will always evaluate to false.
WP latest on PHP 8.3: src/Service/Cache.php (in context of class CommonsBooking/Plugin)#L298
Parameter $field of method CommonsBooking\Plugin::renderREDISConnectionStatus() has invalid type CMB2_Field.
WP latest on PHP 8.3: src/Service/Cache.php (in context of class CommonsBooking/Plugin)#L329
Parameter $field of method CommonsBooking\Plugin::renderFilesystemStatus() has invalid type CMB2_Field.
WP latest on PHP 8.3: src/View/BookingCodes.php#L196
Call to static method php_to_js_dateformat() on an unknown class CMB2_Utils.
WP latest on PHP 8.3: src/View/Migration.php#L21
Parameter $field of method CommonsBooking\View\Migration::renderMigrationForm() has invalid type CMB2_Field.