Skip to content

Commit

Permalink
Fix internal file type
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosimao committed Oct 21, 2021
1 parent c4012ef commit df0e01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/Page.php
Expand Up @@ -94,7 +94,7 @@ public static function fromArray(array $array): self
$icon = Emoji::fromArray($iconArray);
}

if ($iconType === "internal" || $iconType === "external") {
if ($iconType === "file" || $iconType === "external") {
/** @psalm-var FileJson $iconArray */
$icon = File::fromArray($iconArray);
}
Expand Down

0 comments on commit df0e01a

Please sign in to comment.