From 8a2c577823b69117af8eda9b1a46bfbcae8153c6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 8 Jul 2024 17:22:30 -0400 Subject: a few fixes, just a few.... --- src/web/helpers/markdown.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/web/helpers/markdown.php') 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 + */ + function parse(string $path): array { $content = file_get_contents($path); $data = array( 'meta' => array(), -- cgit v1.2.3-freya