Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix rules override (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-hendawy authored Jul 22, 2024
1 parent d94e52e commit bc4ac4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/ValidatingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait ValidatingTrait
*/
public function mergeRules(array $rules)
{
$this->rules += $rules;
$this->rules = array_merge($this->rules, $rules);

return $this;
}
Expand Down

0 comments on commit bc4ac4b

Please sign in to comment.