Skip to content

Commit 4883c1a

Browse files
committed
use native substr
1 parent 13bcd06 commit 4883c1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bootstrap/app.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Foundation\Configuration\Middleware;
88
use Illuminate\Foundation\Http\Middleware\ValidateCsrfToken;
99
use Illuminate\Session\Middleware\StartSession;
10-
use Illuminate\Support\Str;
1110
use Illuminate\Support\Facades\Log;
1211
use Illuminate\View\Middleware\ShareErrorsFromSession;
1312

@@ -34,7 +33,7 @@
3433
Log::warning('HTTP Request Exception', [
3534
'url' => (string) $e->getRequest()->getUri(),
3635
'status' => $e->getResponse()->getStatusCode(),
37-
'body' => Str::of((string) $e->getResponse()->getBody())->substr(0, 250)
36+
'body' => substr((string) $e->getResponse()->getBody(), 0, 250)
3837
]);
3938
})->stop();
4039
})->create();

0 commit comments

Comments
 (0)