Skip to content

Conversation

@mboiev
Copy link
Contributor

@mboiev mboiev commented Mar 6, 2020

No description provided.

@jwillp
Copy link
Contributor

jwillp commented Mar 6, 2020

@mboiev Hi Mykhailo, There are some conflicts between your branch and the dev branch.
Could you resolve them first?
I will still make a review of what you wrote, but it the conflicts have to be resolved, otherwise I wont't be able to merge your PR.

*/
public function validate($v): bool
{
return preg_match($this->regex, $v) != 0?true:false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to return true or false, here.
The following line:

preg_match($this->regex, $v) != 0  

Will already return a boolean.

@jwillp jwillp self-requested a review March 8, 2020 16:33
@jwillp jwillp linked an issue Mar 8, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Password checking related validation rules

2 participants