Skip to content

Commit b12f44c

Browse files
authored
return collection (#40699)
1 parent 498fdd2 commit b12f44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Support/Stringable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,11 +779,11 @@ public function ucfirst()
779779
/**
780780
* Split a string by uppercase characters.
781781
*
782-
* @return array
782+
* @return \Illuminate\Support\Collection
783783
*/
784784
public function ucsplit()
785785
{
786-
return Str::ucsplit($this->value);
786+
return collect(Str::ucsplit($this->value));
787787
}
788788

789789
/**

0 commit comments

Comments
 (0)