throw new ParseException(sprintf('Reference "%s" does not exist.',
$value),
$this->currentLineNb + 1,
$this->currentLine,
$this->filename
);
} return $this->refs
[$value];
} if (\
in_array($value[0
],
['!', '|', '>'
], true
) && self::
preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/',
$value,
$matches)) { $modifiers =
$matches['modifiers'
] ?? '';
$data =
$this->
parseBlockScalar($matches['separator'
],
preg_replace('#\d+#', '',
$modifiers),
abs((int) $modifiers));
if ('' !==
$matches['tag'
] && '!' !==
$matches['tag'
]) { if ('!!binary' ===
$matches['tag'
]) { return Inline::
evaluateBinaryScalar($data);
} return new TaggedValue(substr($matches['tag'
], 1
),
$data);
} return $data;
}