Skip to content

Commit 48baa2b

Browse files
Using CarbonInterface
1 parent 82e7294 commit 48baa2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/DatetimeParser.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
namespace Whitecube\LaravelTimezones;
44

55
use Illuminate\Database\Eloquent\Concerns\HasAttributes;
6-
use Illuminate\Support\Carbon;
7-
use Carbon\CarbonImmutable;
6+
use Carbon\CarbonInterface;
87

98
class DatetimeParser
109
{
@@ -20,9 +19,9 @@ class DatetimeParser
2019
*
2120
* @param mixed $value
2221
* @param null|string $format
23-
* @return Carbon|CarbonImmutable
22+
* @return CarbonInterace
2423
*/
25-
public function parse(mixed $value, ?string $format): Carbon|CarbonImmutable
24+
public function parse(mixed $value, ?string $format): CarbonInterface
2625
{
2726
$this->format = $format;
2827

0 commit comments

Comments
 (0)