Skip to content

Commit 0b13b48

Browse files
Carbon collision class fix
1 parent 2093ace commit 0b13b48

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/Capsule/TimeHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Tamedevelopers\Support\Capsule;
66

7-
use Illuminate\Support\Carbon as carbonInstance;
87
use Tamedevelopers\Support\Str;
98
use Tamedevelopers\Support\Country;
109

@@ -129,7 +128,7 @@ public static function setPassedDate($date = null)
129128

130129
// if instance of Carbon
131130
// then convert to date time
132-
if($date instanceof carbonInstance || (is_object($date) && method_exists($date, 'toDateTimeString'))){
131+
if(is_object($date) && method_exists($date, 'toDateTimeString')){
133132
$date = $date->toDateTimeString();
134133
}
135134

src/stubs/CarbonInstance.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)