Skip to content

Commit b5c4e9c

Browse files
authored
remove deprecation
1 parent bae7d18 commit b5c4e9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PackageChangeLogServiceProvider.php

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

33
namespace ctf0\PackageChangeLog;
44

5+
use Illuminate\Support\Str;
56
use Illuminate\Support\ServiceProvider;
67

78
class PackageChangeLogServiceProvider extends ServiceProvider
@@ -71,6 +72,6 @@ public static function postAutoloadDump(\Composer\Script\Event $event)
7172

7273
protected function checkExist($file, $search)
7374
{
74-
return str_contains(file_get_contents($file), $search);
75+
return Str::contains(file_get_contents($file), $search);
7576
}
7677
}

0 commit comments

Comments
 (0)