fix: depr. warning when passing null to select() (#18)

This commit is contained in:
Victor Westerlund 2023-11-02 11:54:05 +01:00 committed by GitHub
parent eed7a470ed
commit f9ec906414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,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) {