Skip to content

Commit 6af24b5

Browse files
Add return type to __toString()
1 parent b995c21 commit 6af24b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

LazyString.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ final public static function resolve(\Stringable|string|int|float|bool $value):
8282
return $value;
8383
}
8484

85-
/**
86-
* @return string
87-
*/
88-
public function __toString()
85+
public function __toString(): string
8986
{
9087
if (\is_string($this->value)) {
9188
return $this->value;

0 commit comments

Comments
 (0)