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()];