Skip to content

Commit 498fdd2

Browse files
authored
return array from ucsplit (#40694)
1 parent f89fb45 commit 498fdd2

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 static
782+
* @return array
783783
*/
784784
public function ucsplit()
785785
{
786-
return new static(Str::ucsplit($this->value));
786+
return Str::ucsplit($this->value);
787787
}
788788

789789
/**

0 commit comments

Comments
 (0)