phpstan-src
phpstan-src copied to clipboard
vprintf/vsprintf require a non-empty-array argument
these functions throw a ValueError when called with an empty array, see
- https://3v4l.org/5Ro2C
- https://3v4l.org/E7Tev
should SprintfFunctionDynamicReturnTypeExtension return a ErrorType in these cases?
Your example is misleading: https://3v4l.org/Mvl72
It'd make much more sense to create a rule similar to PrintfParametersRule.
This pull request has been marked as ready for review.
This pull request has been marked as ready for review.
Thank you.