Skip to content

Commit

Permalink
Removed some conditionals from review notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdustinh committed Sep 11, 2018
1 parent 4a08af5 commit 835cca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Type/IntegerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function manyToPHP(array $values, array $fields, Driver $driver)
continue;
}

if ($values[$field] !== null && $values[$field] !== '' && !is_numeric($values[$field])) {
if (!is_numeric($values[$field])) {
throw new InvalidArgumentException(sprintf(
'Cannot convert value of type `%s` to integer',
getTypeName($values[$field])
Expand Down

0 comments on commit 835cca4

Please sign in to comment.