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