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

Function newrelic_record_datastore_segment not found #4095

Closed
rvanvelzen opened this issue Nov 17, 2020 · 6 comments
Closed

Function newrelic_record_datastore_segment not found #4095

rvanvelzen opened this issue Nov 17, 2020 · 6 comments
Labels
Milestone

Comments

@rvanvelzen
Copy link
Contributor

Bug report

This function exists in the stubs just like other newrelic-related functions, but only this one can't seem to be found.

Code snippet that reproduces the problem

https://phpstan.org/r/2ffb2d22-4010-4817-bc7c-878f17ced7f0

Expected output

I expect the output for 7.1-7.4 to match the output for 8.

@ondrejmirtes
Copy link
Member

This is happening because this function is marked in JetBrains' stubs as @since 7.5.0.199 which makes it unavailable on PHP 7.4 and older. But the annotation is clearly talking about the extension version and not about PHP version, it should be removed. I'll open a PR in phpstorm-stubs repo.

@ondrejmirtes
Copy link
Member

@ondrejmirtes ondrejmirtes reopened this Nov 18, 2020
@ondrejmirtes
Copy link
Member

Alright, this isn't going to be that easy.

@ondrejmirtes
Copy link
Member

@rvanvelzen
Copy link
Contributor Author

Thanks!

@github-actions
Copy link

github-actions bot commented May 7, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants