1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 14:37:49 +02:00

fix: return type hint static is php 8+

This commit is contained in:
Daniël Klabbers
2022-08-04 10:07:48 +02:00
parent 71b444b6f6
commit b01b75e367

View File

@@ -21,14 +21,14 @@ class Link implements ExtenderInterface
protected $setRel = null; protected $setRel = null;
protected $setTarget = null; protected $setTarget = null;
public function setRel(callable $callable): static public function setRel(callable $callable)
{ {
$this->setRel = $callable; $this->setRel = $callable;
return $this; return $this;
} }
public function setTarget(callable $callable): static public function setTarget(callable $callable)
{ {
$this->setTarget = $callable; $this->setTarget = $callable;