Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerian committed Feb 24, 2018
1 parent e3dff5a commit ff0de51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DoctrineTimestamp/DBAL/Types/Timestamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform)
return null;
}

if ($value instanceof \DateTime) {
if ($value instanceof DateTime) {
return $value->getTimestamp();
}

Expand All @@ -64,7 +64,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
return null;
}

$dt = new \DateTime();
$dt = new DateTime();
$dt->setTimestamp($value);

return $dt;
Expand Down

0 comments on commit ff0de51

Please sign in to comment.