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

Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version #10771

Draft
wants to merge 3 commits into
base: 5.x
Choose a base branch
from

Conversation

kkmuffme
Copy link
Contributor

@kkmuffme kkmuffme commented Mar 2, 2024

Fix #6935

  • this also fixes a bug where the callmaps cache wasn't cleared in a case where it should be cleared
  • this also fixes a bug where a function would not report as undefined if reflection encountered an error
  • this also fixes an issue where reflection would incorrectly modify function/method info if the PHP version running Psalm is older than the declared --php-version (or via config)

@kkmuffme kkmuffme force-pushed the report-undefined-functions-for-older-php-version-instead-of-reflecting branch from b75f091 to 16fec03 Compare March 2, 2024 22:02
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

Successfully merging this pull request may close these issues.

Deprecated/not available functions not reported
1 participant