Skip to content

Commit

Permalink
Cast return values of __toString() as string
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Sep 6, 2017
1 parent 183a3ab commit 8206a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(string $name, string $path)
*/
public function __toString(): string
{
return $this->title ?: $this->name;
return (string) ($this->title ?: $this->name);
}

/**
Expand Down

0 comments on commit 8206a25

Please sign in to comment.