浏览代码

Directly call \Illuminate\Support\Str::startsWith

Lucas Michot 9 年之前
父节点
当前提交
426ac81190
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Mpociot/ApiDoc/ApiDocGenerator.php

+ 1 - 1
src/Mpociot/ApiDoc/ApiDocGenerator.php

@@ -357,7 +357,7 @@ class ApiDocGenerator
         foreach ($headers as $name => $value) {
             $name = strtr(strtoupper($name), '-', '_');
 
-            if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
+            if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
                 $name = $prefix.$name;
             }