comparison vendor/symfony/http-foundation/ParameterBag.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
79 * 79 *
80 * @return mixed 80 * @return mixed
81 */ 81 */
82 public function get($key, $default = null) 82 public function get($key, $default = null)
83 { 83 {
84 return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default; 84 return \array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
85 } 85 }
86 86
87 /** 87 /**
88 * Sets a parameter by name. 88 * Sets a parameter by name.
89 * 89 *
102 * 102 *
103 * @return bool true if the parameter exists, false otherwise 103 * @return bool true if the parameter exists, false otherwise
104 */ 104 */
105 public function has($key) 105 public function has($key)
106 { 106 {
107 return array_key_exists($key, $this->parameters); 107 return \array_key_exists($key, $this->parameters);
108 } 108 }
109 109
110 /** 110 /**
111 * Removes a parameter. 111 * Removes a parameter.
112 * 112 *