1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests/TypeReconciliation
Ricardo Boss 26dd4c5b8f
Try to provide literal int types when possible (fixes #6966) (#7071)
* Fixed vimeo/psalm#6966

* Only accept >= 0 values for mode argument in round()

* Made round() only return float or literal float values and remove unneeded test

* Registered RoundReturnTypeProvider

* Updated cast analyzer to handle single string literal int values as literal ints

* Fixed psalm errors

* Fix invalid property accesses

* Addressed comments

* Added Tests

* Marked RoundReturnTypeProvider as internal

* Fixed CS
2022-01-16 21:33:04 +01:00
..
ArrayKeyExistsTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
AssignmentInConditionalTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ConditionalTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
EmptyTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
InArrayTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
IssetTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ReconcilerTest.php Make treatment of interfaces and classes more symmetrical 2022-01-05 01:10:57 +00:00
RedundantConditionTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ScopeTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
TypeAlgebraTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
TypeTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ValueTest.php Try to provide literal int types when possible (fixes #6966) (#7071) 2022-01-16 21:33:04 +01:00