Skip to content

Commit 0672efd

Browse files
committed
Merge pull request #24 from lucasmichot/feature/master/str
Directly call \Illuminate\Support\Str::startsWith
2 parents 531b887 + 426ac81 commit 0672efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mpociot/ApiDoc/ApiDocGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ protected function transformHeadersToServerVars(array $headers)
357357
foreach ($headers as $name => $value) {
358358
$name = strtr(strtoupper($name), '-', '_');
359359

360-
if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
360+
if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
361361
$name = $prefix.$name;
362362
}
363363

0 commit comments

Comments
 (0)