Skip to content

Commit

Permalink
Merge pull request duoshuo#39 from steambao/master
Browse files Browse the repository at this point in the history
Fix issue where null values cause strict typing to fail
  • Loading branch information
shen2 committed Mar 24, 2015
2 parents e1f1ac8 + 7b02cc6 commit 701576b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function valuesBinary(array $values, $namesForValues = false) {
public static function strictTypeValues(array $values, array $columns) {
$strictTypeValues = [];
foreach($columns as $index => $column) {
$key = isset($values[$column['name']]) ? $column['name'] : $index;
$key = array_key_exists($column['name'], $values) ? $column['name'] : $index;

if (!isset($values[$key])){
$strictTypeValues[$key] = null;
Expand Down

0 comments on commit 701576b

Please sign in to comment.