1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-16 03:17:02 +01:00
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment
AndrolGenhald d022910599
ConcatAnalyzer improvements and non-falsy-string fixes. (#5544)
* ConcatAnalyzer improvements.

Deduplicate code.
Improve type inference.
Allow literal type inference when only one side has multiple types (fixes #5483).
Fix invalid type inference with negative int as right operand.

* Fix inference to be lowercase-string when concatenating int.

* Fix TNonEmptyLowercaseString to not be subtype of TNonFalsyString.

'0' is a non-empty-lowercase-string that is falsy.

* Fix other issues with non-falsy-string.

* Nest ands and ors

Co-authored-by: Matthew Brown <github@muglug.com>
2021-03-31 23:16:21 -04:00
..
ArrayAssignmentAnalyzer.php Change taint path names to prepare for allowing array key tainting 2021-03-24 15:23:56 -04:00
AssignedProperty.php Break apart InstancePropertyAssignmentAnalyzer 2020-11-30 12:09:09 -05:00
InstancePropertyAssignmentAnalyzer.php Added event to prevent tainting. (#5398) 2021-03-19 22:41:41 -04:00
StaticPropertyAssignmentAnalyzer.php ConcatAnalyzer improvements and non-falsy-string fixes. (#5544) 2021-03-31 23:16:21 -04:00