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

Feature Request: sscanf and fscanf return type provider #97

Open
boesing opened this issue May 29, 2022 · 0 comments
Open

Feature Request: sscanf and fscanf return type provider #97

boesing opened this issue May 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@boesing
Copy link
Owner

boesing commented May 29, 2022

As of now, psalm is only able to provide possible return types.
With this plugin, it should be able to infer some of the return types.

Example:

sscanf('1', '%d', $integer);
[$integer] = sscanf('1', '%d');
// $integer should be an integer or null in both cases
@boesing boesing added the enhancement New feature or request label May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant