public function ParseException::setSnippet in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::setSnippet()
- 7.2 vendor/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::setSnippet()
Sets the snippet of code near the error.
Parameters
string $snippet The code snippet:
File
- vendor/
Symfony/ Component/ Yaml/ Exception/ ParseException.php, line 64
Class
- ParseException
- Exception class thrown when an error occurs during parsing.
Namespace
Symfony\Component\Yaml\ExceptionCode
public function setSnippet($snippet) {
$this->snippet = $snippet;
$this
->updateRepr();
}