comparison vendor/symfony/dependency-injection/ParameterBag/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
68 */ 68 */
69 public function get($name) 69 public function get($name)
70 { 70 {
71 $name = $this->normalizeName($name); 71 $name = $this->normalizeName($name);
72 72
73 if (!array_key_exists($name, $this->parameters)) { 73 if (!\array_key_exists($name, $this->parameters)) {
74 if (!$name) { 74 if (!$name) {
75 throw new ParameterNotFoundException($name); 75 throw new ParameterNotFoundException($name);
76 } 76 }
77 77
78 $alternatives = []; 78 $alternatives = [];
119 /** 119 /**
120 * {@inheritdoc} 120 * {@inheritdoc}
121 */ 121 */
122 public function has($name) 122 public function has($name)
123 { 123 {
124 return array_key_exists($this->normalizeName($name), $this->parameters); 124 return \array_key_exists($this->normalizeName($name), $this->parameters);
125 } 125 }
126 126
127 /** 127 /**
128 * Removes a parameter. 128 * Removes a parameter.
129 * 129 *