Skip to content

Commit b722497

Browse files
committed
Use str_replace() instead of Str::replace().
1 parent 91e5173 commit b722497

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Illuminate/Console/Scheduling/ScheduleTestCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Console\Application;
66
use Illuminate\Console\Command;
7-
use Illuminate\Support\Str;
87

98
class ScheduleTestCommand extends Command
109
{
@@ -55,7 +54,7 @@ public function handle(Schedule $schedule)
5554
$commandBinary = Application::phpBinary().' '.Application::artisanBinary();
5655

5756
$matches = array_filter($commandNames, function ($commandName) use ($commandBinary, $name) {
58-
return trim(Str::replace($commandBinary, '', $commandName)) === $name;
57+
return trim(str_replace($commandBinary, '', $commandName)) === $name;
5958
});
6059

6160
if (count($matches) !== 1) {

0 commit comments

Comments
 (0)