Skip to content

Commit

Permalink
Pass argument
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Dec 18, 2024
1 parent f608fb7 commit 19fa27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait ManagesFrequencies
*/
public function cron($expression)
{
if (! CronExpression::isValidExpression()) {
if (! CronExpression::isValidExpression($expression)) {
throw new InvalidArgumentException("The expression [$expression] is not a valid cron expression.");
}

Expand Down

0 comments on commit 19fa27f

Please sign in to comment.