diff --git a/core/modules/system/system.install b/core/modules/system/system.install index ae3f4b8..5dd5e02 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -936,8 +936,8 @@ function system_requirements($phase) { 'value' => t('Your PHP installation has a limited date range.'), 'description' => t('You are running on a system where PHP is compiled or limited to using 32-bit integers. This will limit the range of dates and timestamps to the years 1901-2038.'), 'severity' => REQUIREMENT_WARNING, - ]; - } + ]; + } return $requirements; } diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php index 065568d..c15d202 100644 --- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php +++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php @@ -312,7 +312,11 @@ public function providerTestDates() { // On 32-bit systems, timestamps are limited to 1901-2038. if (PHP_INT_SIZE !== 4) { // Create a date object in the distant past. - $dates[] = ['1809-02-12 10:30', 'America/Chicago', '1809-02-12T10:30:00-06:00']; + $dates[] = [ + '1809-02-12 10:30', + 'America/Chicago', + '1809-02-12T10:30:00-06:00' + ]; // Create a date object in the far future. $dates[] = ['2345-01-02 02:04', 'UTC', '2345-01-02T02:04:00+00:00']; } @@ -330,24 +334,68 @@ public function providerTestDates() { * @see DateTimePlusTest::testDates() */ public function providerTestDateArrays() { - $dates = [ + $dates = [ // Array input. // Create date object from date array, date only. - [['year' => 2010, 'month' => 2, 'day' => 28], 'America/Chicago', '2010-02-28T00:00:00-06:00'], + [[ + 'year' => 2010, + 'month' => 2, + 'day' => 28 + ], + 'America/Chicago', + '2010-02-28T00:00:00-06:00' + ], // Create date object from date array with hour. - [['year' => 2010, 'month' => 2, 'day' => 28, 'hour' => 10], 'America/Chicago', '2010-02-28T10:00:00-06:00'], + [[ + 'year' => 2010, + 'month' => 2, + 'day' => 28, + 'hour' => 10 + ], + 'America/Chicago', + '2010-02-28T10:00:00-06:00' + ], // Create date object from date array, date only. - [['year' => 2010, 'month' => 2, 'day' => 28], 'Europe/Berlin', '2010-02-28T00:00:00+01:00'], + [[ + 'year' => 2010, + 'month' => 2, + 'day' => 28 + ], + 'Europe/Berlin', + '2010-02-28T00:00:00+01:00' + ], // Create date object from date array with hour. - [['year' => 2010, 'month' => 2, 'day' => 28, 'hour' => 10], 'Europe/Berlin', '2010-02-28T10:00:00+01:00'], + [[ + 'year' => 2010, + 'month' => 2, + 'day' => 28, + 'hour' => 10 + ], + 'Europe/Berlin', + '2010-02-28T10:00:00+01:00' + ], ]; // On 32-bit systems, timestamps are limited to 1901-2038. if (PHP_INT_SIZE !== 4) { // Create a date object in the distant past. - $dates[] = [['year' => 1809, 'month' => 2, 'day' => 12], 'America/Chicago', '1809-02-12T00:00:00-06:00']; - // Create a date object in the far future. - $dates[] = [['year' => 2345, 'month' => 1, 'day' => 2], 'UTC', '2345-01-02T00:00:00+00:00']; + $dates[] = [[ + 'year' => 1809, + 'month' => 2, + 'day' => 12 + ], + 'America/Chicago', + '1809-02-12T00:00:00-06:00' + ]; + // Create a date object in the far future. + $dates[] = [[ + 'year' => 2345, + 'month' => 1, + 'day' => 2 + ], + 'UTC', + '2345-01-02T00:00:00+00:00' + ]; } return $dates;