diff options
Diffstat (limited to 'src/web/helpers/markdown.php')
-rw-r--r-- | src/web/helpers/markdown.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/helpers/markdown.php b/src/web/helpers/markdown.php index 39b430c..5279a1f 100644 --- a/src/web/helpers/markdown.php +++ b/src/web/helpers/markdown.php @@ -8,7 +8,10 @@ class MarkdownParser { $this->parsedown = new ParsedownExtra(); } - function parse($path) { + /** + * @return array<string,mixed> + */ + function parse(string $path): array { $content = file_get_contents($path); $data = array( 'meta' => array(), |