mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
@@ -129,9 +129,10 @@ class DescriptionFactory
|
|||||||
|
|
||||||
//In order to allow "literal" inline tags, the otherwise invalid
|
//In order to allow "literal" inline tags, the otherwise invalid
|
||||||
//sequence "{@}" is changed to "@", and "{}" is changed to "}".
|
//sequence "{@}" is changed to "@", and "{}" is changed to "}".
|
||||||
|
//"%" is escaped to "%%" because of vsprintf.
|
||||||
//See unit tests for examples.
|
//See unit tests for examples.
|
||||||
for ($i = 0; $i < $count; $i += 2) {
|
for ($i = 0; $i < $count; $i += 2) {
|
||||||
$tokens[$i] = str_replace(['{@}', '{}'], ['@', '}'], $tokens[$i]);
|
$tokens[$i] = str_replace(['{@}', '{}', '%'], ['@', '}', '%%'], $tokens[$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [implode('', $tokens), $tags];
|
return [implode('', $tokens), $tags];
|
||||||
|
|||||||
Reference in New Issue
Block a user