Commit 73f3d2c8 authored by Marco Pivetta's avatar Marco Pivetta

#869 - DBAL-1293 - Removing unused assignment

parent 5eb3e046
...@@ -56,12 +56,10 @@ class DateIntervalType extends Type ...@@ -56,12 +56,10 @@ class DateIntervalType extends Type
} }
try { try {
$interval = new \DateInterval($value); return new \DateInterval($value);
} catch (\Exception $exception) { } catch (\Exception $exception) {
throw ConversionException::conversionFailedFormat($value, $this->getName(), 'PY-m-dTH:i:s', $exception); throw ConversionException::conversionFailedFormat($value, $this->getName(), 'PY-m-dTH:i:s', $exception);
} }
return $interval;
} }
/** /**
......
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