Skip to content

Commit

Permalink
Update CronExpression.php (#158)
Browse files Browse the repository at this point in the history
Added "throws" docblock section, so it's immediately obvious in which way an invalid cron expression will fail

Co-authored-by: Roy Garrido <[email protected]>
  • Loading branch information
onemoreangle and onemoreangle authored Aug 10, 2023
1 parent ab597c8 commit fafeaac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cron/CronExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fafeaac

Please sign in to comment.