Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/browser-kit/History.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/vendor/symfony/browser-kit/History.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/browser-kit/History.php Thu Feb 28 13:21:36 2019 +0000 @@ -18,7 +18,7 @@ */ class History { - protected $stack = array(); + protected $stack = []; protected $position = -1; /** @@ -26,7 +26,7 @@ */ public function clear() { - $this->stack = array(); + $this->stack = []; $this->position = -1; } @@ -35,9 +35,9 @@ */ public function add(Request $request) { - $this->stack = array_slice($this->stack, 0, $this->position + 1); + $this->stack = \array_slice($this->stack, 0, $this->position + 1); $this->stack[] = clone $request; - $this->position = count($this->stack) - 1; + $this->position = \count($this->stack) - 1; } /** @@ -47,7 +47,7 @@ */ public function isEmpty() { - return 0 == count($this->stack); + return 0 == \count($this->stack); } /** @@ -75,7 +75,7 @@ */ public function forward() { - if ($this->position > count($this->stack) - 2) { + if ($this->position > \count($this->stack) - 2) { throw new \LogicException('You are already on the last page.'); }