Possible error - Call to printf contains X placeholders, Y values given #9069
-
|
Hi All, I'm migrating a project from php 5 to 8 thanks to PhpStan, but it seems to be an issue with the placeholders in printf/sprintf functions recognised from PhpStan. In the project, there is a lot of printf / sprintf calls that contains %lu as a placeholder, but PhpStan doesn't seem to know it's a placeholder, so it's returning an error for each occurences. So I'm questionning myself as to know if it's the normal behavior or not to throw an error on this placeholder. PS: I couldn't find a similar question on the web, nor a clue as to why this placeholder is different, if it's a duplicate I'm sorry. Thanks folks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Please reproduce the problem on phpstan.org/try, then we'll see what we can do about it. |
Beta Was this translation helpful? Give feedback.
Please reproduce the problem on phpstan.org/try, then we'll see what we can do about it.