Skip to content

Commit

Permalink
If date of birth comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
KKSzymanowski committed Oct 8, 2021
1 parent f62dbb8 commit cbaaa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pesel.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getBirthDate()
*/
public function hasBirthDate(DateTime $birthDate)
{
return $this->getBirthDate() == $birthDate;
return $this->getBirthDate() == (clone $birthDate)->setTime(0, 0, 0);
}

/**
Expand Down

0 comments on commit cbaaa3e

Please sign in to comment.