Skip to content
Snippets Groups Projects
Commit d95acb55 authored by Alexander Varwijk's avatar Alexander Varwijk Committed by ronaldtebrake
Browse files

Issue #3427607 by slowflyer, Kingdutch: Variables are incorrectly output in...

Issue #3427607 by slowflyer, Kingdutch: Variables are incorrectly output in strings causing them to be interpolated as different variables
parent c8257cf0
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,7 @@ class EntityConnection implements ConnectionInterface {
if (!is_null($cursor)) {
$cursor_object = $this->queryHelper->getCursorObject($cursor);
if (is_null($cursor_object)) {
throw new UserError("invalid cursor '${$cursor}'");
throw new UserError("invalid cursor '{$cursor}'");
}
$pagination_condition = $query->orConditionGroup();
......
......@@ -155,7 +155,7 @@ class OptionalModuleManager implements ContainerInjectionInterface {
$contents = file_get_contents($optional_info_file);
if ($contents === FALSE) {
throw new IOException("Could not read '${$optional_info_file}'.");
throw new IOException("Could not read '{$optional_info_file}'.");
}
// We don't catch the InvalidDataTypeException thrown here because we have
// no better info to give developers about invalid Yaml files.
......
......@@ -85,7 +85,7 @@ class AlbumContext extends RawMinkContext {
elseif ($key === "group") {
$group_id = $this->getNewestGroupIdFromTitle($value);
if ($group_id === NULL) {
throw new \Exception("Group '${$value}' does not exist.");
throw new \Exception("Group '{$value}' does not exist.");
}
$page->selectFieldOption($field, $group_id);
// Changing the group of an album updates the visibility settings so we
......
......@@ -143,7 +143,7 @@ class BookContext extends RawMinkContext {
elseif ($key === "group") {
$group_id = $this->getNewestGroupIdFromTitle($value);
if ($group_id === NULL) {
throw new \Exception("Group '${$value}' does not exist.");
throw new \Exception("Group '{$value}' does not exist.");
}
$page->selectFieldOption($field, $group_id);
// Changing the group of a book updates the visibility settings so we
......
......@@ -22,7 +22,7 @@ class TaggingContext extends RawMinkContext {
$term = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => $term_name]);
$term = reset($term);
if (!$term instanceof TermInterface) {
throw new \Exception("Term '${$term_name}' does not exist.");
throw new \Exception("Term '{$term_name}' does not exist.");
}
/** @var \Drupal\social_tagging\SocialTaggingServiceInterface $helper */
$helper = \Drupal::service('social_tagging.tag_service');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment