Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php Thu Feb 28 13:21:36 2019 +0000 @@ -39,10 +39,10 @@ */ public function reset() { - $this->data = array( + $this->data = [ 'memory' => 0, 'memory_limit' => $this->convertToBytes(ini_get('memory_limit')), - ); + ]; } /** @@ -98,9 +98,9 @@ $memoryLimit = strtolower($memoryLimit); $max = strtolower(ltrim($memoryLimit, '+')); if (0 === strpos($max, '0x')) { - $max = intval($max, 16); + $max = \intval($max, 16); } elseif (0 === strpos($max, '0')) { - $max = intval($max, 8); + $max = \intval($max, 8); } else { $max = (int) $max; }