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

Wrong return type of ftp_ssl_connect #2094

Closed
momala454 opened this issue Jan 17, 2022 · 1 comment
Closed

Wrong return type of ftp_ssl_connect #2094

momala454 opened this issue Jan 17, 2022 · 1 comment
Labels
Milestone

Comments

@momala454
Copy link

momala454 commented Jan 17, 2022

Describe the bug
intelephense thinks ftp_ssl_connect returns a resource, but it returns a ftp\Connection (in php8)

To Reproduce

ftp_login(ftp_ssl_connect('test'), 'abc', 'def');

Expected behavior
No error

Screenshots
image

the tooltip show the correct return type however
image

Platform and version
windows 10
intelephense 1.8.0

@bmewburn bmewburn added the bug label Jan 20, 2022
@bmewburn bmewburn added this to the Next Release milestone Jan 27, 2022
@bmewburn bmewburn mentioned this issue Jan 28, 2022
@momala454
Copy link
Author

momala454 commented Jan 31, 2022

Similar problem with IMAP functions, example imap_reopen
image
the tooltip is mixing the type resource and Connection for the parameter imap

imap_open
return type connection on php8, but the tooltip also mixed resource and connection
image
image

this causes
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants