Commit 2d1d3979 authored by Padraig O'Sullivan's avatar Padraig O'Sullivan Committed by Benjamin Eberlei

Simplify fix for test issue with bigint type.

parent 5308f084
......@@ -51,16 +51,6 @@ class BigIntType extends Type
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if (null === $value) {
return $value;
}
/*
* PostgreSQL detects 32 vs 64 bit systems and casts correctly
* for bigint types.
*/
if ($platform->getName() === 'postgresql' && PHP_INT_SIZE !== 4) {
return (string) $value;
}
return $value;
return (null === $value) ? null : (string) $value;
}
}
......@@ -98,4 +98,4 @@ class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase
}
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment