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 8d34a93 commit 82e7294Copy full SHA for 82e7294
src/DatetimeParser.php
@@ -4,6 +4,7 @@
4
5
use Illuminate\Database\Eloquent\Concerns\HasAttributes;
6
use Illuminate\Support\Carbon;
7
+use Carbon\CarbonImmutable;
8
9
class DatetimeParser
10
{
@@ -19,9 +20,9 @@ class DatetimeParser
19
20
*
21
* @param mixed $value
22
* @param null|string $format
- * @return Carbon
23
+ * @return Carbon|CarbonImmutable
24
*/
- public function parse(mixed $value, ?string $format): Carbon
25
+ public function parse(mixed $value, ?string $format): Carbon|CarbonImmutable
26
27
$this->format = $format;
28
@@ -38,4 +39,4 @@ public function getDateFormat()
38
39
40
return $this->format;
41
}
-}
42
+}
0 commit comments