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 82e7294 commit 48baa2bCopy full SHA for 48baa2b
src/DatetimeParser.php
@@ -3,8 +3,7 @@
3
namespace Whitecube\LaravelTimezones;
4
5
use Illuminate\Database\Eloquent\Concerns\HasAttributes;
6
-use Illuminate\Support\Carbon;
7
-use Carbon\CarbonImmutable;
+use Carbon\CarbonInterface;
8
9
class DatetimeParser
10
{
@@ -20,9 +19,9 @@ class DatetimeParser
20
19
*
21
* @param mixed $value
22
* @param null|string $format
23
- * @return Carbon|CarbonImmutable
+ * @return CarbonInterace
24
*/
25
- public function parse(mixed $value, ?string $format): Carbon|CarbonImmutable
+ public function parse(mixed $value, ?string $format): CarbonInterface
26
27
$this->format = $format;
28
0 commit comments