You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -157,6 +162,17 @@ public function NAME($value = [])
157
162
throw new InvalidConfigurationException(\'The node created by "NAME()" has already been initialized. You cannot pass values the second time you call NAME().\');
158
163
}
159
164
165
+
return $this->PROPERTY;
166
+
}' : '
167
+
public function NAME(array $value = []): CLASS
168
+
{
169
+
if (null === $this->PROPERTY) {
170
+
$this->_usedProperties[\'PROPERTY\'] = true;
171
+
$this->PROPERTY = new CLASS($value);
172
+
} elseif (0 < \func_num_args()) {
173
+
throw new InvalidConfigurationException(\'The node created by "NAME()" has already been initialized. You cannot pass values the second time you call NAME().\');
@@ -277,6 +304,17 @@ public function NAME(string $VAR, $VALUE = [])
277
304
throw new InvalidConfigurationException(\'The node created by "NAME()" has already been initialized. You cannot pass values the second time you call NAME().\');
278
305
}
279
306
307
+
return $this->PROPERTY[$VAR];
308
+
}' : '
309
+
public function NAME(string $VAR, array $VALUE = []): CLASS
310
+
{
311
+
if (!isset($this->PROPERTY[$VAR])) {
312
+
$this->_usedProperties[\'PROPERTY\'] = true;
313
+
$this->PROPERTY[$VAR] = new CLASS($VALUE);
314
+
} elseif (1 < \func_num_args()) {
315
+
throw new InvalidConfigurationException(\'The node created by "NAME()" has already been initialized. You cannot pass values the second time you call NAME().\');
Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Tests/Builder/Fixtures/AddToList/Symfony/Config/AddToList/MessengerConfig.php
0 commit comments