Skip to content

Commit

Permalink
AbstractComposite constructor has better practice
Browse files Browse the repository at this point in the history
  • Loading branch information
solleer authored and henriquemoody committed Aug 4, 2016
1 parent fb471f9 commit 8dd8032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Rules/AbstractComposite.php
Expand Up @@ -19,9 +19,9 @@ abstract class AbstractComposite extends AbstractRule
{
protected $rules = [];

public function __construct()
public function __construct(...$rule)
{
$this->addRules(func_get_args());
$this->addRules($rule);
}

public function setName($name)
Expand Down

0 comments on commit 8dd8032

Please sign in to comment.