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

Undefined type 'ZMQ'.intelephense(1009) #1480

Closed
gruz opened this issue Oct 28, 2020 · 2 comments
Closed

Undefined type 'ZMQ'.intelephense(1009) #1480

gruz opened this issue Oct 28, 2020 · 2 comments

Comments

@gruz
Copy link

gruz commented Oct 28, 2020

Describe the bug
ZMQ is installed and I can run e.g. php -r "echo \ZMQ::SOCKET_PULL;", but VS Code treats it as an undefined type

To Reproduce

<?php
echo \ZMQ::SOCKET_PULL;

Expected behavior
Class should be recognized, like it's done for e.g. PDO::CURSOR_FWDONLY

Screenshots
If applicable, add screenshots to help explain your problem.
Bad: https://i.imgur.com/piguTUM.png
Good: https://i.imgur.com/xdimBxg.png

Platform and version
OS and Intelephense version.

Linux, openSUSE Leap 15.2,
Intelephence: v1.5.4
VSCode: 1.50.1

@bmewburn
Copy link
Owner

bmewburn commented Nov 1, 2020

Have you added zmq to intelephense.stubs ?

@gruz
Copy link
Author

gruz commented Nov 1, 2020

Thanks, that's it!

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

2 participants