Skip to content

Commit

Permalink
Merge pull request #2309 from JHGitty/patch-1
Browse files Browse the repository at this point in the history
Fix unnecessary check in DecimalType
  • Loading branch information
Ocramius committed Jan 22, 2016
2 parents 02e5b61 + e7c8ac9 commit eb48797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Types/DecimalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $pla
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return (null === $value) ? null : $value;
return $value;
}
}

0 comments on commit eb48797

Please sign in to comment.