Skip to content

Commit

Permalink
stop using array_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared King committed Jun 6, 2020
1 parent b339948 commit 5d1014b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConnectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function getDefault()

// handle multiple configurations
foreach ($this->config as $k => $v) {
if (array_value($v, 'default')) {
if (isset($v['default'])) {
$this->default = $k;

return $this->get($this->default);
Expand Down
2 changes: 1 addition & 1 deletion src/Statement/ValuesStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function build()

foreach ($this->insertRows as $row) {
foreach ($keys as $key) {
$this->values[] = array_value($row, $key);
$this->values[] = isset($row[$key]) ? $row[$key] : null;
}
}

Expand Down

0 comments on commit 5d1014b

Please sign in to comment.