/** * If the specified source message exists, replace it with the specified * destination message, but keep the same parameters as in the original error. * * Note, due to the lack of tools for comparing Message objects, this * function will not work when using a Message object as the search parameter. * * @param Message|string $source Message key or object to search for * @param Message|string $dest Replacement message key or object * @return bool Return true if the replacement was done, false otherwise. */ public function replaceMessage($source, $dest) { return $this->sv->replaceMessage($source, $dest); }