From 385b03db6f0952f99a7b112be988ca8cc4d212ce Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 6 Apr 2015 08:08:18 +0100 Subject: [PATCH] Import DateTime instead of using root namespace --- src/Entities/Traits/TokenEntityTrait.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Entities/Traits/TokenEntityTrait.php b/src/Entities/Traits/TokenEntityTrait.php index 92503973..e55cc2eb 100644 --- a/src/Entities/Traits/TokenEntityTrait.php +++ b/src/Entities/Traits/TokenEntityTrait.php @@ -1,6 +1,7 @@ expiryDateTime = $dateTime; } @@ -130,6 +131,6 @@ trait TokenEntityTrait */ public function isExpired() { - return (new \DateTime()) > $this->getExpiryDateTime(); + return (new DateTime()) > $this->getExpiryDateTime(); } } \ No newline at end of file