Skip to content
This repository was archived by the owner on Aug 30, 2020. It is now read-only.

Commit f527d4e

Browse files
authored
Fix compatibility issue with Laravel 6
1 parent bdbfdb8 commit f527d4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BsForm.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Elnooronline\LaravelBootstrapForms;
44

5+
use Illuminate\Support\Str;
56
use Collective\Html\FormBuilder;
67
use Elnooronline\LaravelBootstrapForms\Helpers\Locale;
78
use Elnooronline\LaravelBootstrapForms\Traits\HasOpenAndClose;
@@ -216,7 +217,7 @@ public function getFormBuilderMethods()
216217
$methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
217218
$methodsList = [];
218219
foreach ($methods as $method) {
219-
if (! starts_with($method->getName(), '__')) {
220+
if (! Str::startsWith($method->getName(), '__')) {
220221
$methodsList[] = $method->getName();
221222
}
222223
}

0 commit comments

Comments
 (0)