From 7b1389b48b49a183e83d3433cc0d8d5c7f9bfdd9 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 16 Jun 2019 21:32:37 +0100 Subject: [PATCH] More specific return type --- src/Components/Inlines/Image.php | 4 ++-- src/Components/Inlines/Link.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Inlines/Image.php b/src/Components/Inlines/Image.php index 1f1d7eb..09b63a1 100644 --- a/src/Components/Inlines/Image.php +++ b/src/Components/Inlines/Image.php @@ -71,12 +71,12 @@ final class Image implements Inline } /** - * @return Handler + * @return Handler */ public function stateRenderable() { return new Handler( - /** @return Element|Text */ + /** @return Element */ function (State $State) { $attributes = [ 'src' => $this->url(), diff --git a/src/Components/Inlines/Link.php b/src/Components/Inlines/Link.php index 41780c6..df15792 100644 --- a/src/Components/Inlines/Link.php +++ b/src/Components/Inlines/Link.php @@ -113,12 +113,12 @@ final class Link implements Inline } /** - * @return Handler + * @return Handler */ public function stateRenderable() { return new Handler( - /** @return Element|Text */ + /** @return Element */ function (State $State) { $attributes = ['href' => $this->url()];