Skip to content

Commit 5780fdd

Browse files
committed
Returning type static is only php8 but needs to be 7.4 compatible too.
1 parent 7b614aa commit 5780fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TclTk/TkFont.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function getStyleNames(): array
3232
return array_keys(array_filter($this->getStyles()));
3333
}
3434

35-
public static function createFromFontOptions(TkFontOptions $fontOptions): static
35+
public static function createFromFontOptions(TkFontOptions $fontOptions): self
3636
{
3737
$font = new static($fontOptions->family, (int) $fontOptions->size);
3838
$font->setBold($fontOptions->weight === 'bold')

0 commit comments

Comments
 (0)