Skip to content

Commit

Permalink
Actually use FieldFactoryInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp committed Feb 29, 2020
1 parent 33e9c65 commit 1942ec1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cron/CronExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CronExpression
private $cronParts;

/**
* @var FieldFactory CRON field factory
* @var FieldFactoryInterface CRON field factory
*/
private $fieldFactory;

Expand All @@ -65,11 +65,11 @@ class CronExpression
* `@weekly` - Run once a week, midnight on Sun - 0 0 * * 0
* `@daily` - Run once a day, midnight - 0 0 * * *
* `@hourly` - Run once an hour, first minute - 0 * * * *
* @param null|FieldFactory $fieldFactory Field factory to use
* @param null|FieldFactoryInterface $fieldFactory Field factory to use
*
* @return CronExpression
*/
public static function factory(string $expression, FieldFactory $fieldFactory = null): CronExpression
public static function factory(string $expression, FieldFactoryInterface $fieldFactory = null): CronExpression
{
$mappings = [
'@yearly' => '0 0 1 1 *',
Expand Down

0 comments on commit 1942ec1

Please sign in to comment.