Skip to content

Commit ee6b178

Browse files
authored
Fixed the phpstan error for Str::append() (#6802)
1 parent 6167e97 commit ee6b178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Str.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ public static function excerpt($text, $phrase = '', $options = [])
10591059
fn ($endWithRadius) => $endWithRadius->append($omission),
10601060
);
10611061

1062-
return $start->append($matches[2], $end)->__toString();
1062+
return $start->append($matches[2], (string) $end)->__toString();
10631063
}
10641064

10651065
/**

0 commit comments

Comments
 (0)