Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/RequestStack.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
19 class RequestStack | 19 class RequestStack |
20 { | 20 { |
21 /** | 21 /** |
22 * @var Request[] | 22 * @var Request[] |
23 */ | 23 */ |
24 private $requests = array(); | 24 private $requests = []; |
25 | 25 |
26 /** | 26 /** |
27 * Pushes a Request on the stack. | 27 * Pushes a Request on the stack. |
28 * | 28 * |
29 * This method should generally not be called directly as the stack | 29 * This method should generally not be called directly as the stack |
90 * | 90 * |
91 * @return Request|null | 91 * @return Request|null |
92 */ | 92 */ |
93 public function getParentRequest() | 93 public function getParentRequest() |
94 { | 94 { |
95 $pos = count($this->requests) - 2; | 95 $pos = \count($this->requests) - 2; |
96 | 96 |
97 if (!isset($this->requests[$pos])) { | 97 if (!isset($this->requests[$pos])) { |
98 return; | 98 return; |
99 } | 99 } |
100 | 100 |