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