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

there have a bug, resolved. #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

adotpeng
Copy link

getCode method return value is blank

getCode method return value is blank
@PHPGangsta
Copy link
Owner

Hello,

can you please explain where the bug exactly is? Why does getCode() not return the correct value? It works since years.
Maybe you changed my class and activated strict_types or so? That might fail, because str_pad() expects a string as first parameter, but the modulo-operation gives an int value.
But that only happens if you changed my class/file, and activated strict_types for it.
Or is there another problem with the code you are fixing?

Why did you introduce the variables $secretLen and $eightBitsLen, they are not needed I think. Can you please explain why you introduced them?

Thanks

@adotpeng
Copy link
Author

i am sorry, i used strict_types. thanks for your reminder.

@MarkMaldaba
Copy link

This PR should be closed. As far as I can see (and as per the above discussion) there is no issue here to fix, as strict_types is not enabled for this library.

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