From fafeaac510b681cb0992bb0250b76f2e36756b6c Mon Sep 17 00:00:00 2001 From: Roy Garrido <109597356+onemoreangle@users.noreply.github.com> Date: Thu, 10 Aug 2023 21:24:55 +0200 Subject: [PATCH] Update CronExpression.php (#158) Added "throws" docblock section, so it's immediately obvious in which way an invalid cron expression will fail Co-authored-by: Roy Garrido <109597356+r-garrido@users.noreply.github.com> --- src/Cron/CronExpression.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cron/CronExpression.php b/src/Cron/CronExpression.php index 80aa035..216ce43 100644 --- a/src/Cron/CronExpression.php +++ b/src/Cron/CronExpression.php @@ -177,6 +177,7 @@ public static function isValidExpression(string $expression): bool * * @param string $expression CRON expression (e.g. '8 * * * *') * @param null|FieldFactoryInterface $fieldFactory Factory to create cron fields + * @throws InvalidArgumentException */ public function __construct(string $expression, FieldFactoryInterface $fieldFactory = null) {