Skip to content

Commit 5eaa6a1

Browse files
committed
chore: phpstan fix
1 parent 850c946 commit 5eaa6a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

classes/Visualizer/Module/Setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function custom_cron_schedules( $schedules ) {
472472
/**
473473
* Schedule the recurring DB refresh action.
474474
*/
475-
private function schedule_refresh_db_action() {
475+
private function schedule_refresh_db_action(): void {
476476
$hook = 'visualizer_schedule_refresh_db';
477477
$group = 'visualizer';
478478
$interval_key = apply_filters( 'visualizer_chart_schedule_interval', 'visualizer_ten_minutes' );
@@ -495,7 +495,7 @@ private function schedule_refresh_db_action() {
495495
/**
496496
* Unschedule the recurring DB refresh action.
497497
*/
498-
private function unschedule_refresh_db_action() {
498+
private function unschedule_refresh_db_action(): void {
499499
$hook = 'visualizer_schedule_refresh_db';
500500
$group = 'visualizer';
501501
if ( function_exists( 'as_unschedule_all_actions' ) ) {

classes/Visualizer/Module/Upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static function makeAllTableChartsTabular() {
8383
/**
8484
* Migrate recurring WP-Cron jobs to Action Scheduler.
8585
*/
86-
private static function migrate_action_scheduler() {
86+
private static function migrate_action_scheduler(): void {
8787
if ( ! function_exists( 'as_schedule_recurring_action' ) || ! function_exists( 'as_next_scheduled_action' ) ) {
8888
return;
8989
}

0 commit comments

Comments
 (0)