@trigger_error(sprintf('Support for keys without a placeholder prefix is deprecated in Drupal 9.1.0 and will be removed in Drupal 10.0.0. Invalid placeholder (%s) with string: "%s"',$key,$string),E_USER_DEPRECATED);
}
else{
// Warn for random variables that won't be replaced.
trigger_error(sprintf('Invalid placeholder (%s) with string: "%s"',$key,$string),E_USER_WARNING);
}
// No replacement possible therefore we can discard the argument.
$this->expectDeprecation('Support for keys without a placeholder prefix is deprecated in Drupal 9.1.0 and will be removed in Drupal 10.0.0. Invalid placeholder (foo) with string: "No replacements"');