Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning from user input #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

franmomu
Copy link

When the user input is the main cause, the warning message was empty.

I added one, but since I'm not a native speaker (as you can notice 😬), any suggestion for the message is more than welcome.

I also added some phpstan doc: https://phpstan.org/r/68533b15-9d58-4205-9a0f-5664c8aca3fe

@coveralls
Copy link

coveralls commented Apr 14, 2020

Coverage Status

Coverage increased (+0.005%) to 98.184% when pulling f1290df on franmomu:add_warning_user_input into dde9679 on bjeavons:master.

@bjeavons
Copy link
Owner

Hello @franmomu, thank you for the PR and also for the test, very much appreciated! I want to come back to this and give this another review after more thought, the suggestion language has some unique context. Zxcvbn-PHP doesn't know why a call is passing user data so the suggestion shouldn't make too many assumptions.

test/FeedbackTest.php Outdated Show resolved Hide resolved
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.

3 participants