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:
parent
efcccb3256
commit
7b1389b48b
@ -71,12 +71,12 @@ final class Image implements Inline
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Handler<Element|Text>
|
* @return Handler<Element>
|
||||||
*/
|
*/
|
||||||
public function stateRenderable()
|
public function stateRenderable()
|
||||||
{
|
{
|
||||||
return new Handler(
|
return new Handler(
|
||||||
/** @return Element|Text */
|
/** @return Element */
|
||||||
function (State $State) {
|
function (State $State) {
|
||||||
$attributes = [
|
$attributes = [
|
||||||
'src' => $this->url(),
|
'src' => $this->url(),
|
||||||
|
@ -113,12 +113,12 @@ final class Link implements Inline
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Handler<Element|Text>
|
* @return Handler<Element>
|
||||||
*/
|
*/
|
||||||
public function stateRenderable()
|
public function stateRenderable()
|
||||||
{
|
{
|
||||||
return new Handler(
|
return new Handler(
|
||||||
/** @return Element|Text */
|
/** @return Element */
|
||||||
function (State $State) {
|
function (State $State) {
|
||||||
$attributes = ['href' => $this->url()];
|
$attributes = ['href' => $this->url()];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user