From 97a6ba6d69e2f8458d5da87747945c904f7566fe Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 21 Nov 2021 15:51:52 +0200 Subject: [PATCH] FIX PHP8: PHP Fatal error: Uncaught TypeError: Unsupported operand types --- includes/class-sp-player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index b47e9df6..08d0f101 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -772,7 +772,7 @@ endif; $placeholder = sp_solve( $stat->equation, $placeholders[ $player_id ], $stat->precision ); // Adjustment - $adjustment = sp_array_value( $player_adjustments, $stat->post_name, 0 ); + $adjustment = (float) sp_array_value( $player_adjustments, $stat->post_name, 0 ); // Apply adjustment if ( $adjustment != 0 ) :