public function ParseException::setSnippet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/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/ yaml/ Exception/ ParseException.php, line 62
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();
}