1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

More specific return type

This commit is contained in:
Aidan Woods 2019-06-16 21:32:37 +01:00
parent efcccb3256
commit 7b1389b48b
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 4 additions and 4 deletions

View File

@ -71,12 +71,12 @@ final class Image implements Inline
}
/**
* @return Handler<Element|Text>
* @return Handler<Element>
*/
public function stateRenderable()
{
return new Handler(
/** @return Element|Text */
/** @return Element */
function (State $State) {
$attributes = [
'src' => $this->url(),

View File

@ -113,12 +113,12 @@ final class Link implements Inline
}
/**
* @return Handler<Element|Text>
* @return Handler<Element>
*/
public function stateRenderable()
{
return new Handler(
/** @return Element|Text */
/** @return Element */
function (State $State) {
$attributes = ['href' => $this->url()];