-
-
Save doctrinebot/fc0e3512f01c5e551d03 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DBAL-44 - https://github.com/doctrine/dbal/issues/1636
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: DBAL/Types/DecimalType.php | |
=================================================================== | |
--- DBAL/Types/DecimalType.php (revision 2) | |
+++ DBAL/Types/DecimalType.php (working copy) | |
@@ -42,6 +42,6 @@ | |
public function convertToPHPValue($value, AbstractPlatform $platform) | |
{ | |
- return (double) $value; | |
+ return null === $value ? null : (double) $value; | |
} | |
} | |
\ No newline at end of file | |
Index: DBAL/Types/SmallIntType.php | |
=================================================================== | |
--- DBAL/Types/SmallIntType.php (revision 2) | |
+++ DBAL/Types/SmallIntType.php (working copy) | |
@@ -42,7 +42,7 @@ | |
public function convertToPHPValue($value, AbstractPlatform $platform) | |
{ | |
- return (int) $value; | |
+ return null === $value ? null : (int) $value; | |
} | |
public function getBindingType() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment