mirror of
https://github.com/danog/phpdoc.git
synced 2024-11-26 20:14:51 +01:00
Small fix
This commit is contained in:
parent
b7ae25b5af
commit
57c168c5d0
@ -590,7 +590,7 @@ class PhpDoc
|
|||||||
public function getFrontMatter(array $init = []): string
|
public function getFrontMatter(array $init = []): string
|
||||||
{
|
{
|
||||||
$result = '';
|
$result = '';
|
||||||
foreach ($init + $this->frontMatter as $key => $value) {
|
foreach (\array_merge($init, $this->frontMatter) as $key => $value) {
|
||||||
$result .= "$key: ".Escaper::escapeWithDoubleQuotes($value)."\n";
|
$result .= "$key: ".Escaper::escapeWithDoubleQuotes($value)."\n";
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
@ -606,7 +606,7 @@ class PhpDoc
|
|||||||
private function getIndexFrontMatter(array $init = []): string
|
private function getIndexFrontMatter(array $init = []): string
|
||||||
{
|
{
|
||||||
$result = '';
|
$result = '';
|
||||||
foreach ($init + $this->indexFrontMatter as $key => $value) {
|
foreach (\array_merge($init, $this->indexFrontMatter) as $key => $value) {
|
||||||
$result .= "$key: ".Escaper::escapeWithDoubleQuotes($value)."\n";
|
$result .= "$key: ".Escaper::escapeWithDoubleQuotes($value)."\n";
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
Reference in New Issue
Block a user