Skip to content

Commit

Permalink
Merge pull request #29 from tvlooy/static
Browse files Browse the repository at this point in the history
new static instead of self
  • Loading branch information
mtdowling committed Jun 24, 2013
2 parents 067520d + 8b0eb45 commit d668b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cron/CronExpression.php
Expand Up @@ -76,7 +76,7 @@ public static function factory($expression, FieldFactory $fieldFactory = null)
$expression = $mappings[$expression];
}

return new self($expression, $fieldFactory ?: new FieldFactory());
return new static($expression, $fieldFactory ?: new FieldFactory());
}

/**
Expand Down

0 comments on commit d668b99

Please sign in to comment.