Skip to content

Commit

Permalink
Use environment instead of isLocal (#53638)
Browse files Browse the repository at this point in the history
isLocal is not an interface of the Application contract.
NaokiTsuchiya authored Nov 25, 2024
1 parent 7afa6b6 commit 3f62f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public function handle()
{
$this->components->info(
'Running scheduled tasks every minute.',
$this->getLaravel()->isLocal() ? OutputInterface::VERBOSITY_NORMAL : OutputInterface::VERBOSITY_VERBOSE
$this->getLaravel()->environment('local') ? OutputInterface::VERBOSITY_NORMAL : OutputInterface::VERBOSITY_VERBOSE
);

[$lastExecutionStartedAt, $executions] = [Carbon::now()->subMinutes(10), []];

0 comments on commit 3f62f86

Please sign in to comment.