From 6a3ff66d304a415833508cf1cac7ec1ee089b204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mart=C3=ADnez?= Date: Fri, 5 Jan 2024 08:43:22 +0100 Subject: [PATCH] Fix Stringable::convertCase() return type Return type was _string_ instead of _static_, broking method chaining on IDEs. --- src/Illuminate/Support/Stringable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/Stringable.php b/src/Illuminate/Support/Stringable.php index 018416d9ac73..62a664114551 100644 --- a/src/Illuminate/Support/Stringable.php +++ b/src/Illuminate/Support/Stringable.php @@ -205,7 +205,7 @@ public function containsAll($needles, $ignoreCase = false) * * @param int $mode * @param string $encoding - * @return string + * @return static */ public function convertCase(int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8') {