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

Help required on HappyEyeBallsConnectionBuilder error #119

Closed
satishtaluru opened this issue Apr 2, 2020 · 3 comments
Closed

Help required on HappyEyeBallsConnectionBuilder error #119

satishtaluru opened this issue Apr 2, 2020 · 3 comments

Comments

@satishtaluru
Copy link

Hi,
When running examples/01-query.php this file I am getting error as Argument 1 passed to React\Socket\HappyEyeBallsConnectionBuilder::React\Socket{closure}() must be of the type array, null given, called in

@WyriHaximus
Copy link
Member

Hey @satishtaluru, does the error also include a line?

@satishtaluru
Copy link
Author

Argument 1 passed to React\Socket\HappyEyeBallsConnectionBuilder::React\Socket{closure}() must be of the type array, null given, called in /opt/lampp/htdocs/learning/m/vendor/react/promise/src/FulfilledPromise.php on line 25 and defined in /opt/lampp/htdocs/learning/m/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php on line 68

@clue
Copy link
Contributor

clue commented May 11, 2020

@satishtaluru Thanks for reporting, this is indeed a bug in the underlying react/socket component that will only be shown when using legacy PHP 5.

I've just filed reactphp/socket#230 to fix this underlying issue 👍 In the meantime, we highly recommend using the latest PHP version in which case this error will not be shown.

@clue clue closed this as completed May 11, 2020
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

3 participants