File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Illuminate/Console/Scheduling Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ protected function expressionPasses()
328
328
$ date ->setTimezone ($ this ->timezone );
329
329
}
330
330
331
- return CronExpression:: factory ($ this ->expression )->isDue ($ date ->toDateTimeString ());
331
+ return ( new CronExpression ($ this ->expression ) )->isDue ($ date ->toDateTimeString ());
332
332
}
333
333
334
334
/**
@@ -890,9 +890,8 @@ public function getSummaryForDisplay()
890
890
*/
891
891
public function nextRunDate ($ currentTime = 'now ' , $ nth = 0 , $ allowCurrentDate = false )
892
892
{
893
- return Date::instance (CronExpression::factory (
894
- $ this ->getExpression ()
895
- )->getNextRunDate ($ currentTime , $ nth , $ allowCurrentDate , $ this ->timezone ));
893
+ return Date::instance ((new CronExpression ($ this ->getExpression ()))
894
+ ->getNextRunDate ($ currentTime , $ nth , $ allowCurrentDate , $ this ->timezone ));
896
895
}
897
896
898
897
/**
You can’t perform that action at this time.
0 commit comments