IntegerType::toString is lowercase#3510
Conversation
8f88c09 to
8a56599
Compare
|
I recently learned about https://3v4l.org/nvKP7
Update: ahh its a float, doesn't matter then: https://3v4l.org/sC13o |
|
Yes, Int to string is a lowercase string but not float to string. |
|
Thank you! |
|
Hi, this broke tests on phpstan-doctrine for some PHP versions and I don't understand why only for some. I'm reverting this. Feel free to investigate and fix it there. Thanks. See https://github.com/phpstan/phpstan/actions/runs/11202848434 |
Hi @ondrejmirtes this is "expected", the behavior seems to be different in PHP < 8.1 I assume adding the LowerCase accessory to https://github.com/phpstan/phpstan-doctrine/blob/14a59bb5b719d3740224b6ba8aec80c0294142f9/tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php#L1590 might solve all the issues. So to me, it's all good, we could revert the revert and just fix the tests. |
|
Please try to send a PR to phpstan-doctrine on 1.5.x branch and pin phpstan/phpstan to the non-reverted version (1.12.6). |
|
Which is useful to keep
as a lowercase string.