1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests/TypeReconciliation
SignpostMarv 911ac2d363
Infer numeric-string from (string)$numeric (#3390)
* adding test for vimeo/psalm#3370

* check if typecast will result in numeric-string

* int & float as per examples in vimeo/psalm#3370
* numeric & numeric-string because they shouldn't lose numericness.

* satisfy phpcs

* adjusting assertions to reflect typecasting change
2020-05-18 13:42:47 -04:00
..
ConditionalTest.php Fix #3388 - eliminate null after < 0 check 2020-05-18 08:52:44 -04:00
EmptyTest.php Fix #2742 - prevent paradoxes in assert calls 2020-02-09 11:42:41 -05:00
IssetTest.php Fix #3324 - prevent crash asserting on possibly-undefined variable 2020-05-08 14:21:10 -04:00
ReconcilerTest.php Improve ergonomics of array assignment 2020-04-11 17:50:24 -04:00
RedundantConditionTest.php Prevent some inheritance issues 2020-03-31 11:28:36 -04:00
ScopeTest.php Fix #2915 - prevent "if (true)" and similar 2020-03-15 22:23:31 -04:00
TypeAlgebraTest.php Compare to real outer context, not if one 2020-04-07 15:13:17 -04:00
TypeTest.php Be better about strict inference 2020-03-25 09:18:49 -04:00
ValueTest.php Infer numeric-string from (string)$numeric (#3390) 2020-05-18 13:42:47 -04:00