Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Stadly committed Jun 18, 2019
1 parent d40e73b commit 9c4716a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Rule/ChangeOnDateRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function validate($password, TranslatorInterface $translator): ?Validatio
/**
* @param DateTimeInterface|null $date When the password was last changed.
* @param int|null $weight Don't consider constraints with lower weights.
* @return DateConstraint|null Constraint violated by the count.
* @return DateConstraint|null Constraint violated by the date.
*/
private function getViolation(?DateTimeInterface $date, ?int $weight = null): ?DateConstraint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/ChangeWithIntervalRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function validate($password, TranslatorInterface $translator): ?Validatio
/**
* @param DateTimeInterface|null $date When the password was last changed.
* @param int|null $weight Don't consider constraints with lower weights.
* @return DateIntervalConstraint|null Constraint violated by the count.
* @return DateIntervalConstraint|null Constraint violated by the date.
*/
private function getViolation(?DateTimeInterface $date, ?int $weight = null): ?DateIntervalConstraint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/NoReuseRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function validate($password, TranslatorInterface $translator): ?Validatio
/**
* @param array<int> $positions Positions of former passwords matching the password.
* @param int|null $weight Don't consider constraints with lower weights.
* @return PositionConstraint|null Constraint violated by the position.
* @return PositionConstraint|null Constraint violated by the positions.
*/
private function getViolation(array $positions, ?int $weight = null): ?PositionConstraint
{
Expand Down

0 comments on commit 9c4716a

Please sign in to comment.