Skip to content

Commit 9fdd719

Browse files
authored
Cast label to string in __toString method
1 parent 67f6530 commit 9fdd719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/AbstractAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function sortOrder(): Attribute
8383

8484
public function __toString(): string
8585
{
86-
return $this->label;
86+
return (string) $this->label;
8787
}
8888

8989
public function toArray()

0 commit comments

Comments
 (0)