Skip to content

Commit 503c20c

Browse files
author
Andrey Helldar
committed
Removed redundancy from asTime() method
1 parent 232a5e1 commit 503c20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ public function fromDateTime($value)
847847
*/
848848
protected function asTime($value)
849849
{
850-
return $value instanceof Carbon || $value instanceof CarbonInterface
850+
return $value instanceof CarbonInterface
851851
? Date::instance($value)
852852
: Date::createFromFormat('H:i:s', $value);
853853
}

0 commit comments

Comments
 (0)