Skip to content

Commit

Permalink
formats
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn committed Sep 13, 2022
1 parent 3c64270 commit e677da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(protected Theme $theme)
/** @param Theme|class-string $theme */
public static function from(Theme|string $theme): self
{
return new self(is_string($theme) ? new $theme : $theme);
return new self(is_string($theme) ? new $theme() : $theme);
}

public function highlight(string $code): string
Expand Down

0 comments on commit e677da1

Please sign in to comment.