diff options
Diffstat (limited to 'lib/classes/forms/Link.php')
| -rw-r--r-- | lib/classes/forms/Link.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/forms/Link.php b/lib/classes/forms/Link.php index eeb0244..e198c71 100644 --- a/lib/classes/forms/Link.php +++ b/lib/classes/forms/Link.php @@ -11,7 +11,7 @@ class Link extends Part protected $icon; protected $attributes = []; - public function __construct(string $url, string $label, \Icon $icon = null) + public function __construct(string $url, string $label, ?\Icon $icon = null) { $this->url = $url; $this->label = $label; @@ -67,7 +67,7 @@ class Link extends Part * @param \Icon $icon * @return $this */ - public function setIcon(\Icon $icon = null): Link + public function setIcon(?\Icon $icon = null): Link { $this->icon = $icon; return $this; |
