You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Carbon/Factory.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,9 @@
65
65
* @method Carbon createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time using strict validation.
66
66
* @method mixed executeWithLocale(string $locale, callable $func) Set the current locale to the given, execute the passed function, reset the locale to previous one,
67
67
* then return the result of the closure (or null if the closure was void).
68
-
* @method Carbon fromSerialized($value) Create an instance from a serialized string.
68
+
* @method Carbon fromSerialized($value, array $options = []) Create an instance from a serialized string.
69
+
* If $value is not from a trusted source, consider using the allowed_classes option to limit
70
+
* the types of objects that can be built, for instance:
69
71
* @method array getAvailableLocales() Returns the list of internally available locales and already loaded custom locales.
70
72
* (It will ignore custom translator dynamic loading.)
71
73
* @method Language[] getAvailableLocalesInfo() Returns list of Language object for each available locale. This object allow you to get the ISO name, native
Copy file name to clipboardExpand all lines: src/Carbon/FactoryImmutable.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,9 @@
62
62
* @method CarbonImmutable createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null) Create a new Carbon instance from a specific date and time using strict validation.
63
63
* @method mixed executeWithLocale(string $locale, callable $func) Set the current locale to the given, execute the passed function, reset the locale to previous one,
64
64
* then return the result of the closure (or null if the closure was void).
65
-
* @method CarbonImmutable fromSerialized($value) Create an instance from a serialized string.
65
+
* @method CarbonImmutable fromSerialized($value, array $options = []) Create an instance from a serialized string.
66
+
* If $value is not from a trusted source, consider using the allowed_classes option to limit
67
+
* the types of objects that can be built, for instance:
66
68
* @method array getAvailableLocales() Returns the list of internally available locales and already loaded custom locales.
67
69
* (It will ignore custom translator dynamic loading.)
68
70
* @method Language[] getAvailableLocalesInfo() Returns list of Language object for each available locale. This object allow you to get the ISO name, native
0 commit comments