Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/Session/SessionBagProxy.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
42 /** | 42 /** |
43 * @return bool | 43 * @return bool |
44 */ | 44 */ |
45 public function isEmpty() | 45 public function isEmpty() |
46 { | 46 { |
47 if (!isset($this->data[$this->bag->getStorageKey()])) { | |
48 return true; | |
49 } | |
47 ++$this->usageIndex; | 50 ++$this->usageIndex; |
48 | 51 |
49 return empty($this->data[$this->bag->getStorageKey()]); | 52 return empty($this->data[$this->bag->getStorageKey()]); |
50 } | 53 } |
51 | 54 |
79 /** | 82 /** |
80 * {@inheritdoc} | 83 * {@inheritdoc} |
81 */ | 84 */ |
82 public function clear() | 85 public function clear() |
83 { | 86 { |
84 ++$this->usageIndex; | |
85 | |
86 return $this->bag->clear(); | 87 return $this->bag->clear(); |
87 } | 88 } |
88 } | 89 } |