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

xdebug_info triggers UndefinedFunction #8977

Closed
gdejong opened this issue Dec 21, 2022 · 2 comments · Fixed by #9011
Closed

xdebug_info triggers UndefinedFunction #8977

gdejong opened this issue Dec 21, 2022 · 2 comments · Fixed by #9011
Labels
easy problems Issues that can be fixed without background knowledge of Psalm Help wanted internal stubs/callmap

Comments

@gdejong
Copy link
Contributor

gdejong commented Dec 21, 2022

See https://xdebug.org/docs/all_functions#xdebug_info

https://psalm.dev/r/1a65c240f2

Another xdebug method like xdebug_get_stack_depth does not trigger an UndefinedFunction: https://psalm.dev/r/4646f18e42

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/1a65c240f2
<?php

xdebug_info("mode");
Psalm output (using commit c75f06e):

ERROR: UndefinedFunction - 3:1 - Function xdebug_info does not exist
https://psalm.dev/r/4646f18e42
<?php

xdebug_get_stack_depth();
Psalm output (using commit c75f06e):

No issues!

@orklah
Copy link
Collaborator

orklah commented Dec 21, 2022

We have xdebug_get_stack_depth signature in Callmap file but not xdebug_info: https://github.com/vimeo/psalm/tree/master/dictionaries

Up for adding it? We have an article on how those files work here: https://psalm.dev/docs/contributing/editing_callmaps/

@orklah orklah added easy problems Issues that can be fixed without background knowledge of Psalm internal stubs/callmap Help wanted labels Dec 21, 2022
mathe42 added a commit to mathe42/psalm that referenced this issue Dec 27, 2022
orklah added a commit that referenced this issue Dec 27, 2022
feat: add xdebug_info (fixes #8977)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy problems Issues that can be fixed without background knowledge of Psalm Help wanted internal stubs/callmap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants