-
Notifications
You must be signed in to change notification settings - Fork 672
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
SprintfReturnTypeProvider crashes with unknown sprintf format #9874
Labels
Comments
I found these snippets: https://psalm.dev/r/eef72f64c3<?php
$a = 'a';
sprintf('foo "%" bar', $a);
|
@kkmuffme can you take a look? |
Yeah, I know, it's just an artefact of #9817. The current PR was just the basic starting point, will PR a fix for this and the referenced issue today. |
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
Jun 6, 2023
* check args for (s)printf for Invalid/TooMany/TooFew * don't change the return type when we cannot infer it more specifically (nullable return) * fix vimeo#9874 * implement vimeo#9817 * add tests
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
Jun 7, 2023
* check args for (s)printf for Invalid/TooMany/TooFew * don't change the return type when we cannot infer it more specifically (nullable return) * fix vimeo#9874 * implement vimeo#9817 * add tests
kkmuffme
added a commit
to kkmuffme/psalm
that referenced
this issue
Jun 9, 2023
* check args for (s)printf for Invalid/TooMany/TooFew * don't change the return type when we cannot infer it more specifically (nullable return) * fix vimeo#9874 * implement vimeo#9817 * add tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, SprintfReturnTypeProvider crashes when sprintf is used with an invalid format, eg:
https://psalm.dev/r/eef72f64c3
The text was updated successfully, but these errors were encountered: