We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2093ace commit 0b13b48Copy full SHA for 0b13b48
src/Capsule/TimeHelper.php
@@ -4,7 +4,6 @@
4
5
namespace Tamedevelopers\Support\Capsule;
6
7
-use Illuminate\Support\Carbon as carbonInstance;
8
use Tamedevelopers\Support\Str;
9
use Tamedevelopers\Support\Country;
10
@@ -129,7 +128,7 @@ public static function setPassedDate($date = null)
129
128
130
// if instance of Carbon
131
// then convert to date time
132
- if($date instanceof carbonInstance || (is_object($date) && method_exists($date, 'toDateTimeString'))){
+ if(is_object($date) && method_exists($date, 'toDateTimeString')){
133
$date = $date->toDateTimeString();
134
}
135
src/stubs/CarbonInstance.php
0 commit comments