Skip to content

Commit fafeaac

Browse files
authored
Update CronExpression.php (mtdowling#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>
1 parent ab597c8 commit fafeaac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Cron/CronExpression.php

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public static function isValidExpression(string $expression): bool
177177
*
178178
* @param string $expression CRON expression (e.g. '8 * * * *')
179179
* @param null|FieldFactoryInterface $fieldFactory Factory to create cron fields
180+
* @throws InvalidArgumentException
180181
*/
181182
public function __construct(string $expression, FieldFactoryInterface $fieldFactory = null)
182183
{

0 commit comments

Comments
 (0)