composer update

This commit is contained in:
2019-12-01 06:37:45 +00:00
parent fa199eef05
commit 3115ab75a5
3650 changed files with 72361 additions and 147137 deletions
+4 -14
View File
@@ -110,8 +110,8 @@ class Chronos extends DateTimeImmutable implements ChronosInterface
$testNow = $testNow->modify($time);
}
$relativetime = static::isTimeExpression($time);
if (!$relativetime && $tz !== $testNow->getTimezone()) {
$relativeTime = static::isTimeExpression($time);
if (!$relativeTime && $tz !== $testNow->getTimezone()) {
$testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
}
@@ -191,22 +191,12 @@ class Chronos extends DateTimeImmutable implements ChronosInterface
*/
public function __debugInfo()
{
// Conditionally add properties if state exists to avoid
// errors when using a debugger.
$vars = get_object_vars($this);
$properties = [
'hasFixedNow' => static::hasTestNow(),
'time' => $this->format('Y-m-d H:i:s.u'),
'timezone' => $this->getTimezone()->getName(),
];
if (isset($vars['date'])) {
$properties['time'] = $this->format('Y-m-d H:i:s.u');
}
if (isset($vars['timezone'])) {
$properties['timezone'] = $this->getTimezone()->getName();
}
return $properties;
}
}