comparison vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
61 /** 61 /**
62 * {@inheritdoc} 62 * {@inheritdoc}
63 */ 63 */
64 public function has($name) 64 public function has($name)
65 { 65 {
66 return array_key_exists($name, $this->attributes); 66 return \array_key_exists($name, $this->attributes);
67 } 67 }
68 68
69 /** 69 /**
70 * {@inheritdoc} 70 * {@inheritdoc}
71 */ 71 */
72 public function get($name, $default = null) 72 public function get($name, $default = null)
73 { 73 {
74 return array_key_exists($name, $this->attributes) ? $this->attributes[$name] : $default; 74 return \array_key_exists($name, $this->attributes) ? $this->attributes[$name] : $default;
75 } 75 }
76 76
77 /** 77 /**
78 * {@inheritdoc} 78 * {@inheritdoc}
79 */ 79 */
105 * {@inheritdoc} 105 * {@inheritdoc}
106 */ 106 */
107 public function remove($name) 107 public function remove($name)
108 { 108 {
109 $retval = null; 109 $retval = null;
110 if (array_key_exists($name, $this->attributes)) { 110 if (\array_key_exists($name, $this->attributes)) {
111 $retval = $this->attributes[$name]; 111 $retval = $this->attributes[$name];
112 unset($this->attributes[$name]); 112 unset($this->attributes[$name]);
113 } 113 }
114 114
115 return $retval; 115 return $retval;