Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/http-foundation/Session/Flash/FlashBag.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 | af1871eacc83 |
line wrap: on
line diff
--- a/vendor/symfony/http-foundation/Session/Flash/FlashBag.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/http-foundation/Session/Flash/FlashBag.php Thu Feb 28 13:21:36 2019 +0000 @@ -19,7 +19,7 @@ class FlashBag implements FlashBagInterface { private $name = 'flashes'; - private $flashes = array(); + private $flashes = []; private $storageKey; /** @@ -62,7 +62,7 @@ /** * {@inheritdoc} */ - public function peek($type, array $default = array()) + public function peek($type, array $default = []) { return $this->has($type) ? $this->flashes[$type] : $default; } @@ -78,7 +78,7 @@ /** * {@inheritdoc} */ - public function get($type, array $default = array()) + public function get($type, array $default = []) { if (!$this->has($type)) { return $default; @@ -97,7 +97,7 @@ public function all() { $return = $this->peekAll(); - $this->flashes = array(); + $this->flashes = []; return $return; }