Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php Thu Feb 28 13:11:55 2019 +0000 @@ -19,7 +19,7 @@ private $name = 'attributes'; private $storageKey; - protected $attributes = array(); + protected $attributes = []; /** * @param string $storageKey The key used to store attributes in the session @@ -95,7 +95,7 @@ */ public function replace(array $attributes) { - $this->attributes = array(); + $this->attributes = []; foreach ($attributes as $key => $value) { $this->set($key, $value); } @@ -121,7 +121,7 @@ public function clear() { $return = $this->attributes; - $this->attributes = array(); + $this->attributes = []; return $return; } @@ -143,6 +143,6 @@ */ public function count() { - return count($this->attributes); + return \count($this->attributes); } }