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
thrownewInvalidArgumentException(sprintf('Parameter "tags" must be an array for service "%s" in %s. Check your YAML syntax.', $id, $file));
354
+
foreach ($tagsas$tag) {
355
+
if (!is_array($tag)) {
356
+
$tag = array('name' => $tag);
349
357
}
350
358
351
-
foreach ($tagsas$tag) {
352
-
if (!is_array($tag)) {
353
-
$tag = array('name' => $tag);
354
-
}
355
-
356
-
if (!isset($tag['name'])) {
357
-
thrownewInvalidArgumentException(sprintf('A "tags" entry is missing a "name" key for service "%s" in %s.', $id, $file));
358
-
}
359
-
$name = $tag['name'];
360
-
unset($tag['name']);
359
+
if (!isset($tag['name'])) {
360
+
thrownewInvalidArgumentException(sprintf('A "tags" entry is missing a "name" key for service "%s" in %s.', $id, $file));
361
+
}
362
+
$name = $tag['name'];
363
+
unset($tag['name']);
361
364
362
-
if (!is_string($name) || '' === $name) {
363
-
thrownewInvalidArgumentException(sprintf('The tag name for service "%s" in %s must be a non-empty string.', $id, $file));
364
-
}
365
+
if (!is_string($name) || '' === $name) {
366
+
thrownewInvalidArgumentException(sprintf('The tag name for service "%s" in %s must be a non-empty string.', $id, $file));
367
+
}
365
368
366
-
foreach ($tagas$attribute => $value) {
367
-
if (!is_scalar($value) && null !== $value) {
368
-
thrownewInvalidArgumentException(sprintf('A "tags" attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s" in %s. Check your YAML syntax.', $id, $name, $attribute, $file));
369
-
}
369
+
foreach ($tagas$attribute => $value) {
370
+
if (!is_scalar($value) && null !== $value) {
371
+
thrownewInvalidArgumentException(sprintf('A "tags" attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s" in %s. Check your YAML syntax.', $id, $name, $attribute, $file));
0 commit comments