Skip to content

Commit ca970a2

Browse files
authored
Update AbstractRepository.php
Delete make_array function
1 parent 7a2e607 commit ca970a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Eloquent/AbstractRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,8 @@ public function findForShow($id, $columns = null)
422422
{
423423
if (is_null($columns)) {
424424
$columns = $this->model->getShowAble();
425-
} elseif (is_array($columns)) {
426-
make_array($columns);
427425
}
426+
$columns = (array) $columns;
428427

429428
return $this->find($id, $columns);
430429
}

0 commit comments

Comments
 (0)