Skip to content

Commit

Permalink
Fix PHP 8.4 deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 30, 2024
1 parent a419115 commit aecce3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/WP.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class WP
*
* @return array<string> The list of dropped tables.
*/
public static function dropWpTables(?wpdb $wpdb, ?array $tables = null): array
public static function dropWpTables(wpdb $wpdb, ?array $tables = null): array
{
$allTables = $wpdb->tables('all');
$tablesList = $tables !== null ? array_intersect($allTables, $tables) : $allTables;
Expand Down Expand Up @@ -59,7 +59,7 @@ public static function dropWpTables(?wpdb $wpdb, ?array $tables = null): array
*
* @return array<string> The list of emptied tables.
*/
public static function emptyWpTables(?wpdb $wpdb, ?array $tables = null): array
public static function emptyWpTables(wpdb $wpdb, ?array $tables = null): array
{
$allTables = $wpdb->tables('all');
$tablesList = $tables !== null ? array_intersect($allTables, $tables) : $allTables;
Expand Down

0 comments on commit aecce3c

Please sign in to comment.