From 14c94e10f4fe5a88b8e8637cd0b41e4944e3aa9f Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Thu, 2 Nov 2023 11:39:37 +0100 Subject: [PATCH] fix: depr. warning when passing null to select() --- src/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MySQL.php b/src/MySQL.php index e62c7af..a22ef68 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -140,7 +140,7 @@ $this->throw_if_no_table(); // Create array of columns from CSV - $columns = is_array($columns) ? $columns : explode(",", $columns); + $columns = is_array($columns) || is_null($columns) ? $columns : explode(",", $columns); // Filter columns that aren't in the model if defiend if ($columns && $this->model) {