Support returning an array or a string in count_chars()#3596
Support returning an array or a string in count_chars()#3596ondrejmirtes merged 1 commit intophpstan:2.0.xfrom u01jmg3:2.0.x
count_chars()#3596Conversation
This comment was marked as resolved.
This comment was marked as resolved.
for a php version dependent return-type a we have a few of them in the codebase already for inspiration. |
|
Yikes - as this codebase is so new to me, I'm struggling to know where to start. It looks like this is the first time a string function has made use of the
|
see e.g. https://github.com/phpstan/phpstan-src/blob/2.0.x/src/Type/Php/AbsFunctionDynamicReturnTypeExtension.php which is similar to what we need.
PHPStan 2.x will have min php version of 7.4.
the test-cases are still useful |
staabm
left a comment
There was a problem hiding this comment.
this looks pretty good already
|
@staabm: thanks for your patience/guidance 🙏🏻 |
|
Thank you. |
Uh oh!
There was an error while loading. Please reload this page.