/home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types
Edit: /home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types/VarDateTimeImmutableType.php (1465B)
format($platform->getDateTimeFormatString());
}
throw ConversionException::conversionFailedInvalidType(
$value,
$this->getName(),
['null', DateTimeImmutable::class]
);
}
/**
* {@inheritdoc}
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if ($value === null || $value instanceof DateTimeImmutable) {
return $value;
}
$dateTime = date_create_immutable($value);
if ($dateTime === false) {
throw ConversionException::conversionFailed($value, $this->getName());
}
return $dateTime;
}
/**
* {@inheritdoc}
*/
public function requiresSQLCommentHint(AbstractPlatform $platform)
{
return true;
}
}