mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 20:02:33 +02:00
More specific return type
This commit is contained in:
@@ -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(),
|
||||
|
@@ -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()];
|
||||
|
||||
|
Reference in New Issue
Block a user