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

Problem with PHP 8 #65

Closed
jorgeepena opened this issue Nov 1, 2022 · 1 comment
Closed

Problem with PHP 8 #65

jorgeepena opened this issue Nov 1, 2022 · 1 comment

Comments

@jorgeepena
Copy link

jorgeepena commented Nov 1, 2022

I get the following error when tring to READ the response from the API.

mb_detect_encoding(): Argument #1 ($string) must be of type string, array given

It appears on function parseResponse

foreach ($PARSED as $lineNumber=>$line) { foreach ($line as $key=>$value) { if (mb_detect_encoding($value) == 'ASCII') { continue; } if (mb_detect_encoding($value) == 'UTF-8') { $PARSED[$lineNumber][$key] = ''; continue; } $PARSED[$lineNumber][$key] = bin2hex($value); } } return $PARSED;

@jorgeepena
Copy link
Author

Tried to replicate the error on a fresh composer install of the package and confirmed that I had another version of the file. Looking at the file history I'm still not sure where that foreach came from. Closing the issue as is not relevant.

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

No branches or pull requests

1 participant