From ae44806cb3c23249bc68a39bd1ede6fa0c4e8e56 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 22 May 2022 14:10:15 +0200 Subject: [PATCH] Add PHPDoc comments with @throws tags --- src/Models/MarkdownPost.php | 3 +++ src/Services/RssFeedService.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Models/MarkdownPost.php b/src/Models/MarkdownPost.php index fa558a4d..0f2a699f 100644 --- a/src/Models/MarkdownPost.php +++ b/src/Models/MarkdownPost.php @@ -21,6 +21,9 @@ class MarkdownPost extends MarkdownDocument public static string $sourceDirectory = '_posts'; public static string $parserClass = MarkdownPostParser::class; + /** + * @throws \Exception + */ public function __construct(array $matter, string $body, string $title = '', string $slug = '') { parent::__construct($matter, $body, $title, $slug); diff --git a/src/Services/RssFeedService.php b/src/Services/RssFeedService.php index db7e76de..485449de 100644 --- a/src/Services/RssFeedService.php +++ b/src/Services/RssFeedService.php @@ -24,6 +24,9 @@ public function __construct() $this->addInitialChannelItems(); } + /** + * @throws \Exception + */ public function generate(): self { /** @var MarkdownPost $post */