composer update

This commit is contained in:
2020-05-10 09:29:56 +00:00
parent c6f807ebad
commit 8e93eececf
919 changed files with 11790 additions and 7005 deletions
+159 -80
View File
@@ -63,6 +63,8 @@ use ReflectionException;
* @property-read int $daysInMonth number of days in the given month
* @property-read string $latinMeridiem "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark)
* @property-read string $latinUpperMeridiem "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark)
* @property-read string $timezoneAbbreviatedName the current timezone abbreviated name
* @property-read string $tzAbbrName alias of $timezoneAbbreviatedName
* @property-read string $dayName long name of weekday translated according to Carbon locale, in english if no translation available for current language
* @property-read string $shortDayName short name of weekday translated according to Carbon locale, in english if no translation available for current language
* @property-read string $minDayName very short name of weekday translated according to Carbon locale, in english if no translation available for current language
@@ -87,8 +89,6 @@ use ReflectionException;
* @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
* @property-read string $timezoneName the current timezone name
* @property-read string $tzName alias of $timezoneName
* @property-read string $timezoneAbbreviatedName the current timezone abbreviated name
* @property-read string $tzAbbrName alias of $timezoneAbbreviatedName
* @property-read string $locale locale of the current instance
*
* @method bool isUtc() Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.)
@@ -625,14 +625,19 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public static function __callStatic($method, $parameters);
/**
* Update constructedObjectId on cloned.
*/
public function __clone();
/**
* Create a new Carbon instance.
*
* Please see the testing aids section (specifically static::setTestNow())
* for more on the possibility of this constructor returning a test instance.
*
* @param string|null $time
* @param \DateTimeZone|string|null $tz
* @param string|null $time
* @param DateTimeZone|string|null $tz
*/
public function __construct($time = null, $tz = null);
@@ -794,12 +799,16 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Determines if the instance is between two others.
*
* The third argument allow you to specify if bounds are included or not (true by default)
* but for when you including/excluding bounds may produce different results in your application,
* we recommend to use the explicit methods ->betweenIncluded() or ->betweenExcluded() instead.
*
* @example
* ```
* Carbon::parse('2018-07-25')->between('2018-07-14', '2018-08-01'); // true
* Carbon::parse('2018-07-25')->between('2018-08-01', '2018-08-20'); // false
* Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01'); // false
* Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01', true); // true
* Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01'); // true
* Carbon::parse('2018-07-25')->between('2018-07-25', '2018-08-01', false); // false
* ```
*
* @param \Carbon\Carbon|\DateTimeInterface|mixed $date1
@@ -827,6 +836,23 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public function betweenExcluded($date1, $date2): bool;
/**
* Determines if the instance is between two others, bounds included.
*
* @example
* ```
* Carbon::parse('2018-07-25')->betweenExcluded('2018-07-14', '2018-08-01'); // true
* Carbon::parse('2018-07-25')->betweenExcluded('2018-08-01', '2018-08-20'); // false
* Carbon::parse('2018-07-25')->betweenExcluded('2018-07-25', '2018-08-01'); // true
* ```
*
* @param \Carbon\Carbon|\DateTimeInterface|mixed $date1
* @param \Carbon\Carbon|\DateTimeInterface|mixed $date2
*
* @return bool
*/
public function betweenIncluded($date1, $date2): bool;
/**
* Returns either the close date "Friday 15h30", or a calendar date "10/09/2017" is farthest than 7 days from now.
*
@@ -900,6 +926,15 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public function change($modifier);
/**
* Cleanup properties attached to the public scope of DateTime when a dump of the date is requested.
* foreach ($date as $_) {}
* serializer($date)
* var_export($date)
* get_object_vars($date)
*/
public function cleanupDumpProperties();
/**
* @alias copy
*
@@ -938,13 +973,13 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
* If $hour is not null then the default values for $minute and $second
* will be 0.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param \DateTimeZone|string|null $tz
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
*
@@ -955,10 +990,10 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from just a date. The time portion is set to now.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param \DateTimeZone|string|null $tz
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
*
@@ -969,9 +1004,9 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param \DateTimeZone|string|false|null $tz
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
*
@@ -984,7 +1019,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*
* @param string $format Datetime format
* @param string $time
* @param \DateTimeZone|string|false|null $tz optional timezone
* @param DateTimeZone|string|false|null $tz optional timezone
* @param string|null $locale locale to be used for LTS, LT, LL, LLL, etc. macro-formats (en by fault, unneeded if no such macro-format in use)
* @param \Symfony\Component\Translation\TranslatorInterface $translator optional custom translator to use for macro-formats
*
@@ -997,10 +1032,10 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a specific format and a string in a given language.
*
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param \DateTimeZone|string|false|null $tz
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
*
@@ -1011,10 +1046,10 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a specific ISO format and a string in a given language.
*
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param \DateTimeZone|string|false|null $tz
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
*
@@ -1025,10 +1060,10 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from just a time. The date portion is set to today.
*
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param \DateTimeZone|string|null $tz
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
*
@@ -1039,8 +1074,8 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a time string. The date portion is set to today.
*
* @param string $time
* @param \DateTimeZone|string|null $tz
* @param string $time
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
*
@@ -1061,7 +1096,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a timestamp in milliseconds.
*
* @param int $timestamp
* @param float $timestamp
* @param \DateTimeZone|string|null $tz
*
* @return static
@@ -1080,10 +1115,10 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from just a date. The time portion is set to midnight.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param \DateTimeZone|string|null $tz
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -1104,13 +1139,13 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
* If one of the set values is not valid, an \InvalidArgumentException
* will be thrown.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param \DateTimeZone|string|null $tz
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \Carbon\Exceptions\InvalidDateException|\InvalidArgumentException
*
@@ -1139,7 +1174,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffAsCarbonInterval($date = null, $absolute = true);
/**
* Get the difference by the given interval using a filter closure
* Get the difference by the given interval using a filter closure.
*
* @param CarbonInterval $ci An interval to traverse by
* @param Closure $callback
@@ -1194,7 +1229,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffForHumans($other = null, $syntax = null, $short = false, $parts = 1, $options = null);
/**
* Get the difference in days
* Get the difference in days rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1204,7 +1239,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInDays($date = null, $absolute = true);
/**
* Get the difference in days using a filter closure
* Get the difference in days using a filter closure rounded down.
*
* @param Closure $callback
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
@@ -1215,7 +1250,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInDaysFiltered(\Closure $callback, $date = null, $absolute = true);
/**
* Get the difference in hours.
* Get the difference in hours rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1225,7 +1260,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInHours($date = null, $absolute = true);
/**
* Get the difference in hours using a filter closure
* Get the difference in hours using a filter closure rounded down.
*
* @param Closure $callback
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
@@ -1246,7 +1281,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInMicroseconds($date = null, $absolute = true);
/**
* Get the difference in milliseconds.
* Get the difference in milliseconds rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1256,7 +1291,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInMilliseconds($date = null, $absolute = true);
/**
* Get the difference in minutes.
* Get the difference in minutes rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1266,7 +1301,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInMinutes($date = null, $absolute = true);
/**
* Get the difference in months
* Get the difference in months rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1276,7 +1311,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInMonths($date = null, $absolute = true);
/**
* Get the difference in hours using timestamps.
* Get the difference in hours rounded down using timestamps.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1296,7 +1331,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInRealMicroseconds($date = null, $absolute = true);
/**
* Get the difference in milliseconds using timestamps.
* Get the difference in milliseconds rounded down using timestamps.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1306,7 +1341,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInRealMilliseconds($date = null, $absolute = true);
/**
* Get the difference in minutes using timestamps.
* Get the difference in minutes rounded down using timestamps.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1326,7 +1361,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInRealSeconds($date = null, $absolute = true);
/**
* Get the difference in seconds.
* Get the difference in seconds rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1336,7 +1371,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInSeconds($date = null, $absolute = true);
/**
* Get the difference in weekdays
* Get the difference in weekdays rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1346,7 +1381,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInWeekdays($date = null, $absolute = true);
/**
* Get the difference in weekend days using a filter
* Get the difference in weekend days using a filter rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1356,7 +1391,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function diffInWeekendDays($date = null, $absolute = true);
/**
* Get the difference in weeks
* Get the difference in weeks rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
@@ -1365,6 +1400,16 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public function diffInWeeks($date = null, $absolute = true);
/**
* Get the difference in quarters rounded down.
*
* @param \Carbon\CarbonInterface|\DateTimeInterface|string|null $date
* @param bool $absolute Get the absolute of the difference
*
* @return int
*/
public function diffInQuarters($date = null, $absolute = true);
/**
* Get the difference in years
*
@@ -1459,7 +1504,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function endOfHour();
/**
* Resets the date to end of the century and time to 23:59:59.999999
* Resets the date to end of the millennium and time to 23:59:59.999999
*
* @example
* ```
@@ -1980,6 +2025,15 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public static function getLastErrors();
/**
* Get the raw callable macro registered globally or locally for a given name.
*
* @param string $name
*
* @return callable|null
*/
public function getLocalMacro($name);
/**
* Get the translator of the current instance or the default if none set.
*
@@ -1994,6 +2048,15 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
*/
public static function getLocale();
/**
* Get the raw callable macro registered globally for a given name.
*
* @param string $name
*
* @return callable|null
*/
public static function getMacro($name);
/**
* get midday/noon hour
*
@@ -2257,7 +2320,23 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public static function hasFormat($date, $format);
/**
* Checks if macro is registered.
* Checks if macro is registered globally or locally.
*
* @param string $name
*
* @return bool
*/
public function hasLocalMacro($name);
/**
* Return true if the current instance has its own translator.
*
* @return bool
*/
public function hasLocalTranslator();
/**
* Checks if macro is registered globally.
*
* @param string $name
*
@@ -2285,7 +2364,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a DateTime one.
*
* @param \DateTimeInterface $date
* @param DateTimeInterface $date
*
* @return static
*/
@@ -3163,7 +3242,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Get a Carbon instance for the current date and time.
*
* @param \DateTimeZone|string|null $tz
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -3232,8 +3311,8 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param \DateTimeZone|string|null $tz
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -3242,9 +3321,9 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
*
* @param string $time
* @param string $locale
* @param \DateTimeZone|string|null $tz
* @param string $time
* @param string $locale
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -3299,9 +3378,9 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param \DateTimeZone|string|false|null $tz
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
*
@@ -3325,8 +3404,8 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param \DateTimeZone|string|null $tz
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -3866,7 +3945,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
public function startOfHour();
/**
* Resets the date to the first day of the century and the time to 00:00:00
* Resets the date to the first day of the millennium and the time to 00:00:00
*
* @example
* ```
@@ -4481,7 +4560,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance for today.
*
* @param \DateTimeZone|string|null $tz
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -4490,7 +4569,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance for tomorrow.
*
* @param \DateTimeZone|string|null $tz
* @param DateTimeZone|string|null $tz
*
* @return static
*/
@@ -4735,7 +4814,7 @@ interface CarbonInterface extends DateTimeInterface, JsonSerializable
/**
* Create a Carbon instance for yesterday.
*
* @param \DateTimeZone|string|null $tz
* @param DateTimeZone|string|null $tz
*
* @return static
*/