/home/techb158/dev.balacoffee.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types
Edit: /home/techb158/dev.balacoffee.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/DecimalType.php (976B)
getDecimalTypeDeclarationSQL($column);
}
/**
* {@inheritdoc}
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
// Some drivers starting from PHP 8.1 can represent decimals as float/int
// See also: https://github.com/doctrine/dbal/pull/4818
if (PHP_VERSION_ID >= 80100 && (is_float($value) || is_int($value))) {
return (string) $value;
}
return $value;
}
}