Skip to content

Commit f2c9ef1

Browse files
committed
Merge branch 'phpstan' into php-tkui
2 parents 0636d95 + ef6c418 commit f2c9ef1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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')

src/TclTk/TkFontManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getFixedFont(): Font
5454
protected function createFontFromTclEvalResult(string $name): TkFont
5555
{
5656
$this->interp->eval("font actual $name");
57-
$fontOptions = new TkFontOptions($this->interp->getListResult());
57+
$fontOptions = TkFontOptions::createFromList($this->interp->getListResult());
5858
return TkFont::createFromFontOptions($fontOptions);
5959
}
6060

0 commit comments

Comments
 (0)