Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / browser-kit / History.php
index aeca3277341c79438044f50b061c446c2c5dfe36..beec17c6b4d92aa469f9cf2ae84e20c7e38bba82 100644 (file)
@@ -35,9 +35,9 @@ class History
      */
     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 @@ class History
      */
     public function isEmpty()
     {
-        return 0 == count($this->stack);
+        return 0 == \count($this->stack);
     }
 
     /**
@@ -75,7 +75,7 @@ class History
      */
     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.');
         }