Skip to content

Commit

Permalink
Merge pull request #19 from NHZEX/path-1
Browse files Browse the repository at this point in the history
调整 Collection 类 column 方法
  • Loading branch information
liu21st authored Nov 8, 2019
2 parents 8ee16f3 + e02d9d8 commit c28d377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ public function whereNotBetween(string $field, $value)
/**
* 返回数据中指定的一列
* @access public
* @param string $columnKey 键名
* @param string $indexKey 作为索引值的列
* @param string|null $columnKey 键名
* @param string|null $indexKey 作为索引值的列
* @return array
*/
public function column(string $columnKey, string $indexKey = null)
public function column(?string $columnKey, string $indexKey = null)
{
return array_column($this->items, $columnKey, $indexKey);
}
Expand Down

0 comments on commit c28d377

Please sign in to comment.