This commit is contained in:
2018-08-24 16:52:17 +02:00
parent c3b59bceee
commit e5b6624bb5
176 changed files with 12363 additions and 564 deletions
@@ -58,13 +58,13 @@ class YamlFormatter implements FormatterInterface
/**
* {@inheritdoc}
*/
public function encode($data)
public function encode($data, $inline = null, $indent = null)
{
try {
return (string) YamlParser::dump(
$data,
$this->config['inline'],
$this->config['indent'],
$inline ? (int) $inline : $this->config['inline'],
$indent ? (int) $indent : $this->config['indent'],
YamlParser::DUMP_EXCEPTION_ON_INVALID_TYPE
);
} catch (DumpException $e) {