Skip to content

Commit 5a1fa47

Browse files
authored
FIx for "empty" strings (#50335)
Avoid exception passed string is just spaces. Example: str(' ')->apa() was failing.
1 parent 3646b51 commit 5a1fa47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Support/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ public static function headline($value)
12981298
*/
12991299
public static function apa($value)
13001300
{
1301-
if ($value === '') {
1301+
if (trim($value) === '') {
13021302
return $value;
13031303
}
13041304

0 commit comments

Comments
 (0)